Skip to content

Remove title attributes from the Classic Editor warning#8324

Merged
afercia merged 1 commit intomasterfrom
update/remove-title-attributes-from-classic-editor-warning
Aug 1, 2018
Merged

Remove title attributes from the Classic Editor warning#8324
afercia merged 1 commit intomasterfrom
update/remove-title-attributes-from-classic-editor-warning

Conversation

@afercia
Copy link
Copy Markdown
Contributor

@afercia afercia commented Jul 31, 2018

Description

Title attributes are not available to keyboard users, and may not be announced by screen readers depending on user settings. For more details please refer to https://core.trac.wordpress.org/ticket/24766

See also https://core.trac.wordpress.org/query?keywords=~title-attribute

This PR removes two title attributes used on the buttons in the Classic Editor warning introduced in #8247. As a best practice, it also adds a type="button" attribute to a button. As said, the information in the title attributes is not available to all users and adds little to nothing to the info already provided via the button text.

"Edit in Gutenberg"
vs.
"Open this post in the Gutenberg block editor"

"Continue to Classic Editor"
vs.
"Close this dialog, and edit the post in the classic editor"

Fixes #8315

@afercia afercia added the [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). label Jul 31, 2018
@afercia afercia requested a review from aduth July 31, 2018 15:44
Copy link
Copy Markdown
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@afercia afercia merged commit 819a1f0 into master Aug 1, 2018
@afercia afercia deleted the update/remove-title-attributes-from-classic-editor-warning branch August 1, 2018 07:07
@pento pento added this to the 3.5 milestone Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[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.

3 participants