-
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
Fix blocks navigation menu SVG icon size. #11153
Conversation
I wonder if we should use the newly added |
|
@afercia I pushed the change I proposed which is more generic but also more impacting. So I'm not certain yet at this point. The idea is to use @jasmussen @aduth Thoughts? This also can impact all IconButtons :) In my testing, it looks good though. |
Nice PR. There's one small issue though — the button is too tall. Compare: For whatever reason the height attribute of the icon itself is 24, when the width is 20: I suspect this is partially because this icon was designed on a 24x24px grid, and the remaining editor bar icons are still on the 20x20 grid. Long term more icons are likely to be on the 24x24 grid, but in this case it's a mix. This mix is also okay, because the 24x24px icon still looks crisp while scaled down to 20x20 (matching the other icons). So in this case, the solution is to make sure both the width and height of the icon are 20, even though the viewbox remains 0 0 24 24. |
The height should be fixed. |
Thank you! All good from my end. |
As long as a |
@youknowriad if you think it's good to go, please do feel free to merge it. I'm afraid I don't have time to dedicate today and in the next days. Thanks! |
Fixes #11152
Fixes #11150
Adds a missing height to the Blocks navigation menu SVG icon. Fixes the misplacement of the related menu in Internet Explorer 11. See screenshot on #11152
Also exposes the keyboard shortcut in the button tooltip.