Skip to content

Commit cfcee45

Browse files
Yuiai01Yuiai01
authored andcommitted
fix(Input): Fixed suffix not changing color with status (ant-design#40344)
Co-authored-by: Yuiai01 <dujiaqi@kezaihui.com>
1 parent ffeab05 commit cfcee45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/input/style/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const genStatusStyle = (token: InputToken, parentCls: string): CSSObject
107107
),
108108
},
109109

110-
[`${componentCls}-prefix`]: {
110+
[`${componentCls}-prefix, ${componentCls}-suffix`]: {
111111
color: colorError,
112112
},
113113
},
@@ -128,7 +128,7 @@ export const genStatusStyle = (token: InputToken, parentCls: string): CSSObject
128128
),
129129
},
130130

131-
[`${componentCls}-prefix`]: {
131+
[`${componentCls}-prefix, ${componentCls}-suffix`]: {
132132
color: colorWarning,
133133
},
134134
},

0 commit comments

Comments
 (0)