Skip to content

Commit 25ca343

Browse files
committed
chore(radio): provide feedback
1 parent 74a653a commit 25ca343

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/scss/components/radio/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ hx-radio-control > input[type="radio"]:disabled {
202202

203203
> hx-radio {
204204
@include hxRadioFacade(disabled);
205-
205+
206206
&,
207207
&:hover {
208208
@include hxRadioFacade(disabled, hover);

src/scss/components/radio/mixins/_hxRadioFacade.scss

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,27 @@
2020
box-shadow: $focus-glow-invalid;
2121
}
2222
@else if $pseudo-state == hover {
23-
background-color: $red-status-100;
24-
background-color: var(--hxRadio-invalid-radio-facade-hover-bgcolor, $red-status-100);
23+
background-color: $rax-color-status-critical-100;
24+
background-color: var(--hxRadio-invalid-radio-facade-hover-bgcolor, $rax-color-status-critical-100);
2525
border: 1px solid currentColor;
26-
color: $red-status-500;
27-
color: var(--hxRadio-invalid-radio-facade-hover-color, $red-status-500);
26+
color: $rax-color-status-critical-500;
27+
color: var(--hxRadio-invalid-radio-facade-hover-color, $rax-color-status-critical-500);
2828
}
2929
@else {
30-
border: $rax-component-radio-base-border-width solid $red-status-500;
31-
color: $red-status-500;
30+
border: $rax-component-radio-base-border-width solid currentColor;
3231
color: $rax-component-radio-invalid-border-color;
32+
color: var(--hxRadio-invalid-radio-facade-color, $rax-component-radio-invalid-border-color);
3333
}
3434
}
3535

3636
// ========== DISABLED ==========
3737
@mixin __radioFacade--disabled($pseudo-state: null) {
3838
border: $rax-component-radio-base-border-width solid currentColor;
39-
color: $gray-500;
4039
color: $rax-component-radio-disabled-border-color;
40+
color: var(--hxRadio-disabled-radio-facade-color, $rax-component-radio-disabled-border-color);
4141
cursor: not-allowed;
42+
43+
// v2.0 specs - hover state removed
4244
}
4345

4446
@mixin hxRadioFacade($state: null, $pseudo-state: null) {

0 commit comments

Comments
 (0)