mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-15 13:38:29 +02:00
fix: hover/active text color of filled button with href (#54614)
This commit is contained in:
parent
e59c2a77f7
commit
0b5a36f330
1 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
},
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue