fix: hover/active text color of filled button with href (#54614)

This commit is contained in:
Łukasz Komoszyński 2025-08-07 15:34:48 +02:00 committed by GitHub
parent e59c2a77f7
commit 0b5a36f330
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -349,9 +349,11 @@ const genPresetColorStyle: GenerateStyle<ButtonToken, CSSObject> = (token) => {
token,
lightColor,
{
color: darkColor,
background: lightHoverColor,
},
{
color: darkColor,
background: lightBorderColor,
},
),
@ -411,9 +413,11 @@ const genDefaultButtonStyle: GenerateStyle<ButtonToken, CSSObject> = (token) =>
token,
token.colorFillTertiary,
{
color: token.defaultColor,
background: token.colorFillSecondary,
},
{
color: token.defaultColor,
background: token.colorFill,
},
),
@ -468,9 +472,11 @@ const genPrimaryButtonStyle: GenerateStyle<ButtonToken, CSSObject> = (token) =>
token,
token.colorPrimaryBg,
{
color: token.colorPrimary,
background: token.colorPrimaryBgHover,
},
{
color: token.colorPrimary,
background: token.colorPrimaryBorder,
},
),
@ -556,9 +562,11 @@ const genDangerousStyle: GenerateStyle<ButtonToken, CSSObject> = (token) => ({
token,
token.colorErrorBg,
{
color: token.colorError,
background: token.colorErrorBgFilledHover,
},
{
color: token.colorError,
background: token.colorErrorBgActive,
},
),