-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
FormTokenField: Add box-sizing
reset style and reset default padding
#54734
Conversation
box-sizing
reset style and reset default padding
Size Change: 0 B Total Size: 1.62 MB
ℹ️ View Unchanged
|
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.
Thanks @t-hamano, looks good to me! 🚀 🚢
- Inject WordPress style from the top toolbar.
- There should be no change in the appearance of the component.
Just noting for posterity that there is a slight change (2px) in line height of the input
when injecting the WordPress styles, but that isn't new to this PR. The same thing happens on trunk so I don't think it should impact merging here.
Thanks for the review, @chad1008!
I think this is because injecting WordPress styles changes the font, line height, etc. This is also true for other components, so I would like to merge this PR. |
What?
This PR resolves the following three issues in the
FormTokenField
component:ul
element on the left sideAs a result, the same problem is resolved for the
ComboBoxControl
that includes this component.Why?
This issue does not occur on the block editor. Because reset styles such as post editor and WP-Admin are applied to these elements.
How?
Added styles to fix unintended appearance.
Testing Instructions
FormTokenField
andComboBoxControl
components, enter characters that match the suggestion list.