-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Components - Placeholder]: Set fixed right margin for label's icon #46918
Conversation
That makes more sense to me. |
Size Change: -3 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
Flaky tests detected in 612310a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3849025305
|
I updated to use |
2fcd070
to
612310a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, makes sense 👍
Just noting that $grid-unit-15
is 12px, not 14px. Which matches our standard 4px grid, so it's good.
What?
Fixes: #45360
Fixes: #36836
The Placeholder component adds margin-right to its icon but uses
ch
unit, which is defined as the width of the character 0 which indashicons
is0
. This PR changes the margin to be the same for all cases(12px
value) .Testing Instructions
chart-bar
and insert a Query Loop block