-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(hx-alert): implement custom variables #787
refactor(hx-alert): implement custom variables #787
Conversation
Deploy preview for helix-ui ready! Built with commit 35d6b2a |
src/scss/components/alert/index.scss
Outdated
display: block; | ||
font-weight: 300; | ||
line-height: 1.25rem; | ||
|
||
&[type="info"] { | ||
background-color: $blue-100; | ||
color: $gray-1000; | ||
background-color: var(--hxBlue, $blue-100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All CSS variables should be scoped to hxAlert
:
background-color: var(--hxAlert-info-bgcolor, $blue-100);
src/scss/components/alert/index.scss
Outdated
background-color: $blue-100; | ||
color: $gray-1000; | ||
background-color: var(--hxBlue, $blue-100); | ||
color: var(--hxColor, $gray-1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All CSS variables should be scoped to hxAlert
:
color: var(--hxAlert-info-color, $gray-1000);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes have been done,Please review
src/scss/components/alert/index.scss
Outdated
} | ||
|
||
&[type="error"] { | ||
background-color: $red-900; | ||
color: $gray-0; | ||
background-color: var(--hxRed, $red-900); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see above examples to update changes here and below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes have been done,Please review
fb5f2ed
to
594629c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DEV LGTM
3d33f0d
to
85f2378
Compare
85f2378
to
35d6b2a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dev LGTM
Description
Converted Custom variables
What are the relevant story cards/tickets? Any additional PRs or other references?
Jira: SURF-2095
Before you request a review for this PR:
yarn test
to ensure all tests passed?