-
Notifications
You must be signed in to change notification settings - Fork 219
Conversation
Size Change: +398 B (0%) Total Size: 864 kB
ℹ️ 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 for working on this @tarunvijwani! Confirming the select looks the same between the editor and the frontend with this PR! However, I'm not 100% sure that we should be adding these new CSS declarations.
The issue seems to be that some wp-admin styles are leaking into the block. That's true in the page/post editor in desktop view, but if you switch to tablet or mobile preview, that no longer happens. The issue can't be reproduced either in the Site Editor. That's because Site editor, tablet and mobile previews have the editor iframed (so styles from wp-admin don't leak into the editor).
The effort to completely iframe the page/post editor can be followed here: WordPress/gutenberg#20797.
So, thinking about it a bit more, I consider we shouldn't fix #2506 on our end. Instead, we should wait for the editor to be iframed everywhere (WordPress/gutenberg#20797), that will automatically solve our issue without us needing to change the CSS in our end.
Thoughts @tarunvijwani? Sorry for not keeping that issue up to date. 🙏
This PR has been marked as If deemed still relevant, the pr can be kept active by ensuring it's up to date with the main branch and removing the stale label - otherwise it will automatically be closed after 10 days. |
This PR fixes the CSS for the
<select>
element of theAll Products
block to provide consistent style across the frontend and page editor.Fixes #2506
Screenshots
Manual Testing
How to test the changes in this Pull Request:
All Products
block.<select>
dropdown style should match the page editor's<select>
dropdown style.User Facing Testing
These are steps for user testing (where "user" is someone interacting with this change that is not editing any code).
Changelog