Skip to content

Commit

Permalink
fix(RadioButton): updated tokens (#9990)
Browse files Browse the repository at this point in the history
  • Loading branch information
sstrubberg authored Nov 1, 2021
1 parent aa1a0be commit fedc22b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/styles/scss/components/radio-button/_radio-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Radio
//-----------------------------

@use '../../compat/theme' as *;
@use '../../theme' as *;
@use '../../type';
@use '../form';
@use '../../utilities/focus-outline' as *;
Expand All @@ -20,6 +20,8 @@
@use '../../config' as *;
@use '../../spacing' as *;

@use '../button/tokens' as *;

/// @type Number
/// @access public
/// @group radio-button
Expand Down Expand Up @@ -119,21 +121,21 @@ $radio-border-width: 1px !default;
}
}

.#{$prefix}--radio-button:disabled-01 + .#{$prefix}--radio-button__label {
color: $disabled-01;
.#{$prefix}--radio-button:button-disabled + .#{$prefix}--radio-button__label {
color: $button-disabled;
cursor: not-allowed;
}

.#{$prefix}--radio-button:disabled-01
.#{$prefix}--radio-button:button-disabled
+ .#{$prefix}--radio-button__label
.#{$prefix}--radio-button__appearance,
.#{$prefix}--radio-button:disabled-01:checked
.#{$prefix}--radio-button:button-disabled:checked
+ .#{$prefix}--radio-button__label
.#{$prefix}--radio-button__appearance {
border-color: $disabled-01;
border-color: $border-disabled;

&::before {
background-color: $disabled-01;
background-color: $button-disabled;
}
}

Expand Down

0 comments on commit fedc22b

Please sign in to comment.