Skip to content

Commit

Permalink
fix: button component add colorErrorBgActive token (#48876)
Browse files Browse the repository at this point in the history
  • Loading branch information
LonelySnowman committed May 12, 2024
1 parent b15a2f2 commit 8b80210
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/button/style/index.ts
Expand Up @@ -374,7 +374,7 @@ const genTextButtonStyle: GenerateStyle<ButtonToken, CSSObject> = (token) => ({
},
{
color: token.colorErrorHover,
background: token.colorErrorBg,
background: token.colorErrorBgActive,
},
),
},
Expand Down
8 changes: 8 additions & 0 deletions components/theme/interface/maps/colors.ts
Expand Up @@ -476,6 +476,14 @@ interface ColorErrorMapToken {
*/
colorErrorBgHover: string; // 2

/**
* @nameZH 错误色的浅色背景色激活态
* @nameEN Error background color active state
* @desc 错误色的浅色背景色激活态
* @descEN The active state background color of the error state.
*/
colorErrorBgActive: string; // 3

/**
* @nameZH 错误色的描边色
* @nameEN Error border color
Expand Down
1 change: 1 addition & 0 deletions components/theme/themes/shared/genColorMapToken.ts
Expand Up @@ -60,6 +60,7 @@ export default function genColorMapToken(

colorErrorBg: errorColors[1],
colorErrorBgHover: errorColors[2],
colorErrorBgActive: errorColors[3],
colorErrorBorder: errorColors[3],
colorErrorBorderHover: errorColors[4],
colorErrorHover: errorColors[5],
Expand Down

0 comments on commit 8b80210

Please sign in to comment.