Skip to content

Commit 311906c

Browse files
author
yee.wang
committed
fix(antd): fix the style of feedback popover
2 parents 99a2dd0 + e59aaf3 commit 311906c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

packages/components/src/form-item/index.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ export const BaseItem: React.FC<React.PropsWithChildren<IFormItemProps>> = ({
9494
feedbackLayout === 'popover' ? (
9595
<Popover
9696
autoAdjustOverflow
97-
overlayClassName={cls(
98-
`${prefixCls}-popover`,
99-
`${prefixCls}-${feedbackStatus}-popover`
100-
)}
97+
overlayClassName={cls(prefixCls, `${prefixCls}-popover`)}
10198
placement="top"
10299
content={
103100
<div
@@ -112,7 +109,7 @@ export const BaseItem: React.FC<React.PropsWithChildren<IFormItemProps>> = ({
112109
open={!!feedbackText}
113110
getPopupContainer={getPopupContainer}
114111
>
115-
{children}
112+
<>{children}</>
116113
</Popover>
117114
) : (
118115
children

packages/components/src/form-item/style/other.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ export const genOtherStyle: GenerateStyle = (token) => {
470470
},
471471

472472
[`${componentCls}-warning-help`]: {
473-
color: colorSuccess,
473+
color: colorWarning,
474474
},
475475

476476
[`${componentCls}-success-help`]: {

0 commit comments

Comments
 (0)