-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Update custom menu styles #149187
Update custom menu styles #149187
Conversation
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.
Overall, the new styling is looking really slick 👌 just need to fine-tune the color tokens and ensure it doesn't break existing themes
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.
This rule prevented the behavior in the gif below. A side effect of that rule was a that it rendered an unwanted thin border around all menu items on any theme. I'm trying to scope it to only hc themes like this to prevent the focus outline janking the layout around, but it doesn't seem to work. Could use your input here.
It's roughly similar to what we use for our icon buttons. I'll take a closer look at Win 11 for inspiration. Will also look at the menu buttons themselves.
They are using |
Many thanks to @sbatten for helping our with the high contrast layout shift fix 🙏 I also fixed the following:
CleanShot.2022-05-12.at.11.54.47.mp4 |
* Initial updates * Add border radius * Address PR feedback * Fix typo * Update shadow blur * Update LR padding and use description foreground for shortcuts * Typo * Fix separator padding/margin * fix jumpy items in hc themes * Fix shadow and border radius * Use opacity for keybinding for better color blend * Update min width and container padding T/B * Revert actionbar margin and remove unnecessary menu css file * Ensure menus respect 0 horizontal margin rule * set bg/fg color on menu container * better fix for jumpy menu items * use outline instead of border * clean up dead css in style.css fix opacity for separators in menus * bring back vertical action bar margins * Remove old CSS import Co-authored-by: SteVen Batten <sbatten@microsoft.com>
This PR fixes #148587 by updating the following menu styles:
To do:
:host-context
doesn't seem to have any effect here.Before
After