Text zoom: fix visual bugs for buttons and number inputs#15973
Conversation
| &.is-button { | ||
| padding: 0 10px 1px; | ||
| line-height: 26px; | ||
| height: 28px; |
There was a problem hiding this comment.
These button styles are duplicated from core, so they should be updated there too.
|
Discussed during today's accessibility bug-scrub. Thanks a lot for working on this. Needs some testing, hope feedback can be given as soon as possible. Any testers, welcome! |
|
Discussed during today's accessibility bug scrub. This looks like a huge improvement! Special thank to @kjellr for working on this. Still, the general layout is “fixed width” and doesn’t allow the content area / sidebar to adapt their width, but at least text doesn’t overlap now! Fluid widths should be the standard in today's web development but I guess that's a bit out of the scope of this PR. Thanks! |
|
Just noting that all the existing As such, this is now a generally small update. 🎉 Should be ready for a test if someone has a moment. |
|
Hey @kjellr |
|
This is probably pretty stale at this point, and unfortunately I don't have time to dedicate to it right now. The best bet is for someone else to take it over. |
|
I went ahead and added the Needs Dev label to it. |
|
I think most of these are already fixed now and if they're not it's better to start fresh with the G2 redesign. I'm closing the PR for now, please reopen if you disagree. |
Addresses most of #15356. When text zoom is activated on the browser, the following issues were found:
This PR changes the imposed
heightproperty tomin-heightto the buttons and number inputs. The select fields we use are taken directly from WP-Admin, with no added styles. So those will be adjusted as part of 47477-trac.When implementing these button fixes, the only visual issues I noticed were:
flexboxwas able to stretch the buttons out vertically when they didn't have a set height. 38951df and ee7ea9f should fix those cases.Other than that, things should look exactly the same when 100% text zoom is active.
Before (at 200% Text Zoom):
After (at 200% Text Zoom)