Skip to content

Commit fedc22b

Browse files
authored
fix(RadioButton): updated tokens (#9990)
1 parent aa1a0be commit fedc22b

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

packages/styles/scss/components/radio-button/_radio-button.scss

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// Radio
1010
//-----------------------------
1111

12-
@use '../../compat/theme' as *;
12+
@use '../../theme' as *;
1313
@use '../../type';
1414
@use '../form';
1515
@use '../../utilities/focus-outline' as *;
@@ -20,6 +20,8 @@
2020
@use '../../config' as *;
2121
@use '../../spacing' as *;
2222

23+
@use '../button/tokens' as *;
24+
2325
/// @type Number
2426
/// @access public
2527
/// @group radio-button
@@ -119,21 +121,21 @@ $radio-border-width: 1px !default;
119121
}
120122
}
121123

122-
.#{$prefix}--radio-button:disabled-01 + .#{$prefix}--radio-button__label {
123-
color: $disabled-01;
124+
.#{$prefix}--radio-button:button-disabled + .#{$prefix}--radio-button__label {
125+
color: $button-disabled;
124126
cursor: not-allowed;
125127
}
126128

127-
.#{$prefix}--radio-button:disabled-01
129+
.#{$prefix}--radio-button:button-disabled
128130
+ .#{$prefix}--radio-button__label
129131
.#{$prefix}--radio-button__appearance,
130-
.#{$prefix}--radio-button:disabled-01:checked
132+
.#{$prefix}--radio-button:button-disabled:checked
131133
+ .#{$prefix}--radio-button__label
132134
.#{$prefix}--radio-button__appearance {
133-
border-color: $disabled-01;
135+
border-color: $border-disabled;
134136

135137
&::before {
136-
background-color: $disabled-01;
138+
background-color: $button-disabled;
137139
}
138140
}
139141

0 commit comments

Comments
 (0)