-
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(radio): implement design tokens spec #862
Conversation
Deploy preview for helix-ui ready! Built with commit 25ca343 |
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.
Let's hold off on removing states for now.
color: $gray-950; | ||
color: var(--hxRadio-radioControl-layout-label-color, $gray-950); | ||
font-weight: 400; // normal | ||
color: $rax-component-radio-label-default-color; // in tokens it is $gray-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 revert to continue using IE11 fallback pattern:
color: $rax-component-radio-label-default-color;
color: var(--hxRadio-radioControl-layout-label-color, $rax-component-radio-label-default-color);
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.
@@ -101,10 +101,10 @@ hx-radio-control { | |||
hx-radio-control { | |||
> label > hx-radio { | |||
background-color: $gray-0; | |||
background-color: var(--hxRadio-pristine-radio-bgcolor, $gray-0); | |||
border: 1px solid currentColor; | |||
background-color: $rax-component-radio-default-background-color; |
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 revert to continue using IE11 fallback pattern:
color: $rax-component-radio-default-background-color;
color: var(--hxRadio-pristine-radio-bgcolor, $rax-component-radio-default-background-color);
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.
color: $gray-500; | ||
color: var(--hxRadio-pristine-radio-color, $gray-500); | ||
color: $rax-component-radio-default-border-color; // in tokens it is border-color |
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 revert to continue using IE11 fallback pattern. See above.
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.
@@ -128,24 +128,24 @@ hx-radio-control { | |||
|
|||
&:checked { | |||
color: $blue-700; | |||
color: var(--hxRadio-pristine-radio-checked-color, $blue-700); | |||
color: $rax-component-radio-checked-border-color;// in tokens it is border-color |
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 revert to continue using IE11 fallback pattern. See above.
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.
color: $blue-700; | ||
color: var(--hxRadio-pristine-radio-checked-label-color, $blue-700); | ||
color: $rax-component-radio-checked-border-color;// no specific token for checked label color |
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 revert to continue using IE11 fallback pattern. See above.
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.
&, | ||
&:hover { | ||
@include hxRadioFacade(disabled, hover); | ||
} |
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.
Revert this change.
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.
} @else if $pseudo-state == hover { | ||
&::-ms-check { | ||
background-color: $red-status-100; | ||
background-color: var(--hxRadio-invalid-radio-hover-ie-bgcolor, $red-status-100); | ||
border: 1px solid currentColor; | ||
color: $red-status-500; | ||
color: var(--hxRadio-invalid-radio-hover-ie-color, $red-status-500); | ||
} |
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.
Revert this change.
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.
} @else if $pseudo-state == hover { | ||
&::-ms-check { | ||
background-color: $gray-100; | ||
background-color: var(--hxRadio-disabled-radio-hover-ie-bgcolor, $gray-100); | ||
border: 1px solid currentColor; | ||
color: $gray-500; | ||
color: var(--hxRadio-disabled-radio-hover-ie-color, $gray-500); | ||
} |
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.
Revert this change.
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.
@else if $pseudo-state == hover { | ||
background-color: $red-status-100; | ||
background-color: var(--hxRadio-invalid-radio-facade-hover-bgcolor, $red-status-100); | ||
border: 1px solid currentColor; | ||
color: $red-status-500; | ||
color: var(--hxRadio-invalid-radio-facade-hover-color, $red-status-500); | ||
} |
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.
Revert this change.
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.
@if $pseudo-state == hover { | ||
background-color: $gray-0; | ||
background-color: var(--hxRadio-disabled-radio-facade-hover-bgcolor, $gray-0); | ||
border: 1px solid currentColor; | ||
color: $gray-500; | ||
color: var(--hxRadio-disabled-radio-facade-hover-color, $gray-500); | ||
} | ||
@else { | ||
border: 1px solid currentColor; | ||
color: $gray-500; | ||
color: var(--hxRadio-disabled-radio-facade-color, $gray-500); | ||
cursor: not-allowed; | ||
} |
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.
Revert this change.
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.
Rebased with master and squashed all commits |
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
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
<hx-radio>
: Added design tokensWhat are the relevant story cards/tickets? Any additional PRs or other references?
Jira: SURF2204
Before you request a review for this PR:
yarn test
to ensure all tests passed?