fix: typography ellipsis button style (#49620)

pull/49612/head^2
二货爱吃白萝卜 7 months ago committed by GitHub
parent 381df56fd8
commit 3e98f7cf47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -384,15 +384,14 @@ const Base = React.forwardRef<HTMLElement, BlockProps>((props, ref) => {
}
return (
<button
type="button"
<TransButton
key="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}
>
{typeof symbol === 'function' ? symbol(expanded) : symbol}
</button>
</TransButton>
);
};

Loading…
Cancel
Save