Skip to content

Commit

Permalink
fix: Tag style for ssr (ant-design#46500)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc authored Dec 18, 2023
1 parent 89e5c0c commit 71dc26c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/tag/style/presetCmp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { genPresetColor, genSubStyleComponent } from '../../theme/internal';
// ============================== Preset ==============================
const genPresetStyle = (token: TagToken) =>
genPresetColor(token, (colorKey, { textColor, lightBorderColor, lightColor, darkColor }) => ({
[`${token.componentCls}-${colorKey}`]: {
[`${token.componentCls}${token.componentCls}-${colorKey}`]: {
color: textColor,
background: lightColor,
borderColor: lightBorderColor,
Expand Down
2 changes: 1 addition & 1 deletion components/tag/style/statusCmp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const genTagStatusStyle = (
): CSSInterpolation => {
const capitalizedCssVariableType = capitalize<CssVariableType>(cssVariableType);
return {
[`${token.componentCls}-${status}`]: {
[`${token.componentCls}${token.componentCls}-${status}`]: {
color: token[`color${cssVariableType}`],
background: token[`color${capitalizedCssVariableType}Bg`],
borderColor: token[`color${capitalizedCssVariableType}Border`],
Expand Down

0 comments on commit 71dc26c

Please sign in to comment.