Skip to content

Commit

Permalink
feat: Popconfirm title and description props(change the title display…
Browse files Browse the repository at this point in the history
… logic )2
  • Loading branch information
xhh0223 committed Dec 5, 2022
1 parent 9f84b46 commit 7256804
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/popconfirm/PurePanel.tsx
Expand Up @@ -64,7 +64,7 @@ export const Overlay: React.FC<OverlayProps> = (props) => {
{icon && <span className={`${prefixCls}-message-icon`}>{icon}</span>}
<div
className={classNames(`${prefixCls}-message-title`, {
[`${prefixCls}-message-title-bold`]: !!description,
[`${prefixCls}-message-title-only`]: !!description,
})}
>
{getRenderPropValue(title)}
Expand Down
2 changes: 1 addition & 1 deletion components/popconfirm/style/index.tsx
Expand Up @@ -50,7 +50,7 @@ const genBaseStyle: GenerateStyle<PopconfirmToken> = (token) => {
flex: 'auto',
marginInlineStart: marginXS,
},
'&-title-bold': {
'&-title-only': {
fontWeight: fontWeightStrong,
},
},
Expand Down

0 comments on commit 7256804

Please sign in to comment.