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

Add a label for screen reader in categories block #33060

Conversation

Hug0-Drelon
Copy link
Contributor

@Hug0-Drelon Hug0-Drelon commented Jun 29, 2021

Description

Add a label for screen reader when rendering a category block in dropdown mode.
Fixes this issue https://core.trac.wordpress.org/ticket/53510

How has this been tested?

Tested in WP5.7.2 with Gutenberg 10.9.
Environment :

  • Mac OS 11.3.1
  • PHP 7.4.12
    I tested manually and it seems to work fine.
    I ran the tests suite locally but I experienced some trouble both with the trunk branch and my new one, but the errors doesn't seems related to this fix.

Types of changes

Changes have been made in package/block-library/src/categories/index.php modifying the dropdown attributes.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • I've tested my changes with keyboard and screen readers.

@Hug0-Drelon Hug0-Drelon requested a review from ajitbohra as a code owner June 29, 2021 07:46
@github-actions
Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @Hug0-Drelon! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other.

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 Jun 29, 2021
@youknowriad youknowriad added [Block] Categories Affects the Categories Block Backport to WP 6.7 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta labels Jun 29, 2021
Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

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

This works well for me and fixes the issue.

@youknowriad youknowriad added the [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). label Jun 29, 2021
@youknowriad youknowriad merged commit 8adb5be into WordPress:trunk Jun 29, 2021
@github-actions github-actions bot added this to the Gutenberg 11.0 milestone Jun 29, 2021
@youknowriad youknowriad removed the Backport to WP 6.7 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Categories Affects the Categories Block First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants