-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Navigation: Scale submenu icon. #36714
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
Conversation
|
Size Change: +50 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
|
Nice! Small nuance related to your notes on how to approach the icon: purely based on the animation above, perhaps the larger scaled text doesn't need that arrow size. The arrow can stay at 18 or 24 when the type is 32, if possible. Right now it looks a bit too large of an icon: I guess this case is equally applicable in the context of opened submenu overlay. |
|
Thanks, looks good to me. Not sure if there are any concerns from a themes perspective cc @kjellr |
|
This looks good! In the longterm if might be nice for themes to be able to adjust the thickness of the icon to match their typeface's weight more closely. But that's a nice-to-have. |
I'd love to see a good interface for generally configuring icons and their behavior, not just for this dropdown, but for the burger icon, the close icon, all those things. |
|
Allowing custom icons makes sense, but the alignment of the icon with the font style could and probably should just work as recommended. |
* Navigation: Scale submenu icon. * Update icon to be 60% size.


Description
Fixes #36700. Updates the submenu icon to scale according to the font size applied. Before:
After:
Note, the above sets the dimensions of the icon to 0.8em (80% of the font size), which feels like a right balance. But that does occasionally render the icon at subpixel integers. Visually I think that's acceptable for the icon. But we can also set the dimensions to 1em:
A third option is to set the dimensions to 1em, but scale down the icon inside the SVG. All of these should be easy, so would be happy to address per feedback.
How has this been tested?
Insert a navigation block with submenus and change the font size.
Checklist:
*.native.jsfiles for terms that need renaming or removal).