mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
fix: typography ellipsis button style (#49620)
This commit is contained in:
parent
381df56fd8
commit
3e98f7cf47
@ -384,15 +384,14 @@ const Base = React.forwardRef<HTMLElement, BlockProps>((props, ref) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<TransButton
|
||||||
type="button"
|
|
||||||
key="expand"
|
key="expand"
|
||||||
className={`${prefixCls}-${expanded ? 'collapse' : 'expand'}`}
|
className={`${prefixCls}-${expanded ? 'collapse' : 'expand'}`}
|
||||||
onClick={(e) => onExpandClick(e, { expanded: !expanded })}
|
onClick={(e) => onExpandClick(e!, { expanded: !expanded })}
|
||||||
aria-label={expanded ? textLocale.collapse : textLocale?.expand}
|
aria-label={expanded ? textLocale.collapse : textLocale?.expand}
|
||||||
>
|
>
|
||||||
{typeof symbol === 'function' ? symbol(expanded) : symbol}
|
{typeof symbol === 'function' ? symbol(expanded) : symbol}
|
||||||
</button>
|
</TransButton>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user