fix: typography ellipsis button style (#49620)

This commit is contained in:
二货爱吃白萝卜 2024-06-27 16:54:57 +08:00 committed by GitHub
parent 381df56fd8
commit 3e98f7cf47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>
); );
}; };