Skip to content

Panel header a11y: heading and buttons aria-labels#1101

Merged
afercia merged 1 commit intomasterfrom
update/panel-header-a11y
Jun 10, 2017
Merged

Panel header a11y: heading and buttons aria-labels#1101
afercia merged 1 commit intomasterfrom
update/panel-header-a11y

Conversation

@afercia
Copy link
Contributor

@afercia afercia commented Jun 10, 2017

This PR tries to improve a bit the sidebars (panels) header accessibility:

  • changes the header label <strong> element in a <h2>
  • adds aria-labels to the buttons

I'm not sure if you prefer to use a CSS class to target and style the h2.
About the "admin settings" button, please refer to the note on the issue.

Fixes #1099

<IconButton
onClick={ toggleSidebar }
icon="no-alt"
label={ __( 'Close post settings sidebar' ) }
Copy link
Member

Choose a reason for hiding this comment

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

Does "sidebar" make sense in this context? Just wondering. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry I forgot to reply... well I thought to give some feedback about the "what" post settings is... the wording can be certainly reviewed and improved, I have no strong opinions about that. We should also consider screen readers are used also by low vision users.

@afercia
Copy link
Contributor Author

afercia commented Jun 10, 2017

@iseulde thanks for reviewing!

@afercia afercia merged commit 26029d0 into master Jun 10, 2017
@afercia afercia deleted the update/panel-header-a11y branch June 10, 2017 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants