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

Fix missing label on heading toolbar. #20248

Merged
merged 1 commit into from
Feb 19, 2020
Merged

Conversation

ZebulanStanphill
Copy link
Member

Description

The heading level toolbar lacked an aria-label. This PR adds one.
image

@ZebulanStanphill ZebulanStanphill added [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Block] Heading Affects the Headings Block [a11y] Labelling labels Feb 14, 2020
@@ -48,6 +48,7 @@ class HeadingToolbar extends Component {
controls={ range( minLevel, maxLevel ).map( ( index ) =>
this.createLevelControl( index, selectedLevel, onChange )
) }
label={ __( 'Change heading level' ) }
Copy link
Member Author

Choose a reason for hiding this comment

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

This matches the labels on other controls, e.g. "Change text alignment".

@ZebulanStanphill ZebulanStanphill added the [Type] Bug An existing feature does not function as intended label Feb 14, 2020
Copy link
Contributor

@talldan talldan left a comment

Choose a reason for hiding this comment

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

Thanks @ZebulanStanphill, this looks good to go.

@talldan talldan merged commit 59b07cc into master Feb 19, 2020
@talldan talldan deleted the fix/missing-heading-level-label branch February 19, 2020 05:00
@github-actions github-actions bot added this to the Gutenberg 7.6 milestone Feb 19, 2020
@jorgefilipecosta jorgefilipecosta added 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 Feb 24, 2020
@jorgefilipecosta jorgefilipecosta 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 Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Heading Affects the Headings Block [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants