Skip to content

Commit 1e823a5

Browse files
Fix some radio view css to improve accessibility in disabled mode (#4882)
1 parent a51c522 commit 1e823a5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/foam/u2/view/RadioButton.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ foam.CLASS({
3030
{
3131
name: 'selectedColor',
3232
expression: function(isSelected, isDisabled) {
33-
if ( isDisabled ) return '$backgroundSecondary';
33+
if ( isDisabled ) return '$backgroundInverseTertiary';
3434
if ( isSelected ) return '$backgroundBrand';
35-
return '$backgroundInverseSecondary';
35+
return '$backgroundInverse';
3636
}
3737
},
3838
{

src/foam/u2/view/RadioView.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ foam.CLASS({
3737
cursor: pointer;
3838
align-items: center;
3939
}
40+
^ input[type='radio']:disabled+ label {
41+
cursor: not-allowed;
42+
}
4043
^ .choice {
4144
white-space: nowrap;
4245
}

0 commit comments

Comments
 (0)