Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken icon margin in RTL button #48807

Closed
shadoworion opened this issue May 7, 2024 · 1 comment · Fixed by #48821
Closed

Broken icon margin in RTL button #48807

shadoworion opened this issue May 7, 2024 · 1 comment · Fixed by #48821
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 💄 style less css

Comments

@shadoworion
Copy link

shadoworion commented May 7, 2024

Reproduction link

https://ant.design/components/button?direction=rtl

Steps to reproduce

Add icon to RTL button.

What is expected?

Content of the button is in the middle with space between text and icon.

What is actually happening?

Icon in RTL button with iconPosition="start" has no margin from the text.
Icon in RTL button with iconPosition="end" has unnecessary margin which makes content of the button not in the middle.

Environment Info
antd 5.17.0
React 18.3.1
System MacOS 14.4.1
Browser Edge 124.0.2478.80
@Wxh16144 Wxh16144 added 💄 style less css and removed unconfirmed labels May 7, 2024
@Wxh16144
Copy link
Member

Wxh16144 commented May 7, 2024

Give to me , try fix~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 💄 style less css
Projects
None yet
3 participants