-
Notifications
You must be signed in to change notification settings - Fork 16.1k
feat: add menu item role palette
and header
#45538
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
feat: add menu item role palette
and header
#45538
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.
API LGTM
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.
API LGTM
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.
API LGTM
@gerhardberger could you please sign your commits? |
d9f897e
to
e4f8059
Compare
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.
Can you add the code sample to the PR details that you used to generate the screenshot with the palette
? It's a little hard to tell how that role would be used based on the docs, so that would be helpful for reviewing the API.
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.
API CHANGES REQUESTED
After further discussion we came to the conclusion that the role
property might not be the best fit for these additions. We recommend using the type
property instead, partially based on findings that the 'separator' type uses similar code.
Is this going on? |
@bpasero yes I'm planning to wrap it up with the requested changes in the coming weeks. |
@samuelmaddock I looked into the requested change to implement it with the menu's type property and it would be a little convoluted because we cannot just extend the |
@gerhardberger That approach seems reasonable 👍 |
cecf5f5
to
9642f49
Compare
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.
I like the new approach! Just a couple comments about documenting the new types as macOS 14+ only.
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.
refactor lgtm!
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.
API LGTM
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.
API LGTM
b482dc6
to
6495d82
Compare
9E88
Release Notes Persisted
|
I have automatically backported this PR to "37-x-y", please check out #47245 |
Description of Change
Closes #42960
This PR adds two new macOS specific menu item roles:
palette
: A menu presentation style where items to display align horizontally.header
: A menu item representing a section header for a logical grouping of menu commands.Checklist
npm test
passesRelease Notes
Notes: Add support for menu item role
palette
andheader
on macOS.