Repository navigation
docs: Clarify that menus use non-native styles - #45033
Conversation
|
💖 Thanks for opening this pull request! 💖 Semantic PR titlesWe use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Commit signingThis repo enforces commit signatures for all incoming PRs. PR tipsThings that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
|
Thanks for the PR! :) I'm not particularly for or against documenting this (leaving this to others to decide). I've added a small inline comment on formatting. |
|
I'm +1 on this change, they make the docs more useful. |
nikwen
left a comment
There was a problem hiding this comment.
Damn, I noticed my inline comment never got submitted!
nikwen
left a comment
There was a problem hiding this comment.
Sorry for the delay! Looks good to me except for one little grammar change.
codebytere
left a comment
There was a problem hiding this comment.
@lah7 please correct lint failure:
docs/api/menu.md:13:1 MD009/no-trailing-spaces Trailing spaces [Expected: 0; Actual: 1]
|
@codebytere it looks like the latest test addresses the change request you made; could you do a re-review? |
|
Congrats on merging your first pull request! 🎉🎉🎉 |
|
No Release Notes |
Description of Change
As confirmed in #42262 (comment), at this time, Electron won't be taking steps to restore native menus since the Chrome Refresh 2023 removed them upstream. Electron's docs still refers to them as "native", however, it would be more accurate to imply they are inherited from Chromium.
More so for Windows/Linux, where Chromium inherits colours for the menu, but not the padding, fonts or spacing. macOS seems to be the only one that's native with menus looking identical to any other macOS application (as observed in macOS 11).
This will help provide clarity to Electron applications that they shouldn't assume Electron's API for menus are truly "native" for their users, which allows them to take steps to cover UI and accessibility needs. For example, VS Code has a custom menu implementation, but also a related bug that's waiting for "upstream" (Electron):
Checklist
Release Notes
Notes: none