feat: add menu item role palette and header#45538
Conversation
|
@gerhardberger could you please sign your commits? |
d9f897e to
e4f8059
Compare
itsananderson
left a comment
There was a problem hiding this comment.
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.
samuelmaddock
left a comment
There was a problem hiding this comment.
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
itsananderson
left a comment
There was a problem hiding this comment.
I like the new approach! Just a couple comments about documenting the new types as macOS 14+ only.
b482dc6 to
6495d82
Compare
|
Release Notes Persisted
|
|
I have automatically backported this PR to "37-x-y", please check out #47245 |
* feat: add menu item role `palette` and `header` * adds comments * refactors new role items to new item types * docs: custom type * docs: note types only available on mac 14+ --------- Co-authored-by: Samuel Maddock <smaddock@slack-corp.com>
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 testpassesRelease Notes
Notes: Add support for menu item role
paletteandheaderon macOS.