Skip to content
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

doc: Fix typos in MenuItem role values #24552

Merged
merged 1 commit into from
Jul 21, 2020
Merged

Conversation

szTheory
Copy link
Contributor

@szTheory szTheory commented Jul 15, 2020

Description of Change

Fix typos in role values for some menu items. They must have changed since the docs were originally made.

Checklist

  • relevant documentation is changed or added
  • This is NOT A BREAKING CHANGE. Breaking changes may not be merged to master until 11-x-y is branched.

Release Notes

Notes: none

@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Jul 15, 2020
@ckerr ckerr changed the title Menu docs: Fix typos in role values docs: Fix typos in MenuItem role values Jul 20, 2020
Copy link
Member

@ckerr ckerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Looks like there's no One Correct Capitalization since the role strings are all converted to lowercase internally @ https://github.com/electron/electron/blob/master/lib/browser/api/menu-item.ts#L12.

Still, these roles are listed in camelCase in docs/api/menu-item.md and there's no reason to make the docs confusing by using inconsistent naming without reason. 👍

@szTheory
Copy link
Contributor Author

Ah, I got a capitalization error from TypeScript so maybe it's just the typings that want it camelCase.

@codebytere codebytere changed the title docs: Fix typos in MenuItem role values doc: Fix typos in MenuItem role values Jul 21, 2020
@codebytere codebytere merged commit 74e7f27 into electron:master Jul 21, 2020
@release-clerk
Copy link

release-clerk bot commented Jul 21, 2020

No Release Notes

georgexu99 pushed a commit to georgexu99/electron that referenced this pull request Jul 28, 2020
georgexu99 pushed a commit to georgexu99/electron that referenced this pull request Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants