-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
johnhooks/gutenberg
#1Labels
[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
The Button component of @wordpress/components has incorrect padding with text, icon and iconPosition="right".
It applies the same reduced padding to the left and normal padding on the right, which is intended to improve the look of the button with an icon on the left.
This results in a button looking uneven when it has an icon on the right. With the text too close to the left side and the button too far from the right.
Step-by-step reproduction instructions
import { Button } from `@wordpress/components`;
import { wordpress } from `@wordpress/icons`;
function HelloWordPress() {
return (
<Button text="Hello" icon={wordpress} iconPosition="right" />
);
}Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended