Skip to content

Commit e4497fd

Browse files
authored
fix(s2): Improve high contrast mode in CloseButton (#7592)
1 parent 7189386 commit e4497fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/@react-spectrum/s2/src/CloseButton.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ const styles = style({
6565
isStaticColor: {
6666
default: baseColor('transparent-overlay-800'),
6767
isDisabled: 'transparent-overlay-400'
68+
},
69+
forcedColors: {
70+
default: 'ButtonText',
71+
isDisabled: 'GrayText'
6872
}
6973
}
7074
},

0 commit comments

Comments
 (0)