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

Update standardisation of 'Navigation Menu' to have both words capitalised in user-facing menus #60262

Merged

Conversation

xhemals
Copy link
Contributor

@xhemals xhemals commented Mar 27, 2024

What?

Fixes #59442
Standardising the capitalisation of the phrase "Navigation Menu" within any user-facing labels.

Why?

#59442 mentions this is an issue with the code base. So this is to fix those inconsistencies on the user-facing labels

How?

Manually reviewed files within packages/block-library/src/navigation/edit to check the capitalisation of the phrase. Any that did not have a capital M or N were changed to this standard.

Testing Instructions

Nothing to test as this only changes user-facing labels

Testing Instructions for Keyboard

Screenshots or screencast

One example:

Before

image

After

image

@xhemals xhemals requested a review from ajitbohra as a code owner March 27, 2024 22:58
Copy link

github-actions bot commented Mar 27, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: xhemals <xhemals@git.wordpress.org>
Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @xhemals! In case you missed it, we'd love to have you join us in our Slack community.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Mar 27, 2024
@xhemals
Copy link
Contributor Author

xhemals commented Mar 27, 2024

Do I need to update any tests that fail due to my changes? (Couldn't find it in contribution documentation)

@Mamaduka Mamaduka added the [Type] Bug An existing feature does not function as intended label Mar 28, 2024
@cbravobernal
Copy link
Contributor

Do I need to update any tests that fail due to my changes? (Couldn't find it in contribution documentation)

In this case yes, as the test is giving this error:
Unable to find an accessible element with the role "button" and name "Choose or create a Navigation menu"

The PR is changing that label to Choose or create a Navigation Menu , so you need to update those labels in the tests too.
Thanks for contributing!

@xhemals
Copy link
Contributor Author

xhemals commented Apr 4, 2024

UPDATE
I have updated the tests to include my changes so they don't fail.
image

Copy link
Contributor

@cbravobernal cbravobernal left a comment

Choose a reason for hiding this comment

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

LGMT!

@cbravobernal cbravobernal merged commit f022ade into WordPress:trunk Apr 5, 2024
64 checks passed
@github-actions github-actions bot added this to the Gutenberg 18.2 milestone Apr 5, 2024
cbravobernal added a commit to garridinsi/gutenberg that referenced this pull request Apr 9, 2024
…lised in user-facing menus (WordPress#60262)

* Update standardisation of 'Navigation Menu' to have both words capitilised in user-facing labels

* Fix capitalization of "Navigation Menus" in tests

Co-authored-by: xhemals <xhemals@git.wordpress.org>
Co-authored-by: c4rl0sbr4v0 <cbravobernal@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standardize capitalization of the term 'navigation menu'
3 participants