Skip to content

Commit

Permalink
update classname
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkasany committed Nov 29, 2024
1 parent d8f8ae9 commit 4691dbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ export interface ContentProps {
overlayInnerStyle?: React.CSSProperties;
className?: string;
style?: React.CSSProperties;
overlayInnerClassName?: string;
innerClassName?: string;
}

export default function Popup(props: ContentProps) {
const { children, prefixCls, id, overlayInnerStyle, overlayInnerClassName, className, style } =
const { children, prefixCls, id, overlayInnerStyle: innerStyle, innerClassName, className, style } =
props;

return (
<div className={classNames(`${prefixCls}-content`, className)} style={style}>
<div
className={classNames(`${prefixCls}-inner`, overlayInnerClassName)}
className={classNames(`${prefixCls}-inner`, innerClassName)}
id={id}
role="tooltip"
style={overlayInnerStyle}
style={innerStyle}
>
{typeof children === 'function' ? children() : children}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const Tooltip = (props: TooltipProps, ref: React.Ref<TooltipRef>) => {
key="content"
prefixCls={prefixCls}
id={id}
overlayInnerClassName={tooltipClassNames?.inner}
innerClassName={tooltipClassNames?.inner}
overlayInnerStyle={{ ...overlayInnerStyle, ...tooltipStyles?.inner }}
>
{overlay}
Expand Down

0 comments on commit 4691dbb

Please sign in to comment.