FormTokenField: Add box-sizing reset style and reset default padding#54734
FormTokenField: Add box-sizing reset style and reset default padding#54734
box-sizing reset style and reset default padding#54734Conversation
box-sizing reset style and reset default padding
|
Size Change: 0 B Total Size: 1.62 MB
ℹ️ View Unchanged
|
chad1008
left a comment
There was a problem hiding this comment.
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
FormTokenFieldcomponent:ulelement on the left sideAs a result, the same problem is resolved for the
ComboBoxControlthat 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
FormTokenFieldandComboBoxControlcomponents, enter characters that match the suggestion list.