Skip to content

Commit

Permalink
fix: typography ellipsis button style (ant-design#49620)
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ authored Jun 27, 2024
1 parent 381df56 commit 3e98f7c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/typography/Base/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
};

Expand Down

0 comments on commit 3e98f7c

Please sign in to comment.