💄 STYLE: Button's color should override child anchor's color (#40269)

This commit is contained in:
Danial Soheili 2023-01-17 05:34:12 +03:30 committed by GitHub
parent 8f81298027
commit a91ef95184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,10 @@ const genSharedButtonStyle: GenerateStyle<ButtonToken, CSSObject> = (token): CSS
marginInlineStart: token.marginXS, marginInlineStart: token.marginXS,
}, },
'> a': {
color: 'currentColor',
},
'&:not(:disabled)': { '&:not(:disabled)': {
...genFocusStyle(token), ...genFocusStyle(token),
}, },