1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-28 00:17:12 +01:00

fix: specify colors for buttons (#9124)

Fixes an issue where the buttons would be illegible in dark mode
because we don't set the color explicitly. It just happened to work in
light mode.
This commit is contained in:
Thomas Heartman 2025-01-21 12:51:20 +01:00 committed by GitHub
parent 857c91b803
commit 5846952d7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,6 +72,7 @@ const Wrapper = styled('article')(({ theme }) => ({
fontSize: theme.typography.body1.fontSize,
padding: theme.spacing(0.5),
borderRadius: theme.shape.borderRadius,
color: theme.palette.text.primary,
'&.selected': {
backgroundColor: theme.palette.secondary.light,
@ -79,6 +80,7 @@ const Wrapper = styled('article')(({ theme }) => ({
},
'button:disabled': {
cursor: 'default',
color: theme.palette.text.disabled,
},
}));