components icon indicating copy to clipboard operation
components copied to clipboard

Bug: md-toolbar should have role of toolbar

Open bsteffl opened this issue 9 years ago • 3 comments

Bug:

Md-toolbar should have role="toolbar"

What is the expected behavior?

WCAG Guidelines

What is the current behavior?

No toolbar role is announced. Would be nice to also provide keyboard functionality for Left Arrow and Right Arrow.

What are the steps to reproduce?

<md-toolbar>
  <span>First Row</span>

  <md-toolbar-row>
    <span>Second Row</span>
  </md-toolbar-row>

  <md-toolbar-row>
    <span>Third Row</span>
  </md-toolbar-row>
</md-toolbar>

What is the use-case or motivation for changing an existing behavior?

Meet accessibility requirements

Which versions of Angular, Material, OS, browsers are affected?

2.0.0-beta.1

bsteffl avatar Feb 02 '17 22:02 bsteffl

@bsteffl Thanks for the great issue reports!

Regarding keyboard interaction, I don't think that the toolbar should be responsible for such things. The toolbar is meant to be very simple and should just follow the design guidelines.

devversion avatar Feb 03 '17 10:02 devversion

@DevVersion I appreciate your support for accessibility and being inclusive. Keyboard users will still have access to buttons via tabbing so not supporting keyboard actions works too. When I included that I was just thinking about how native OS toolbars work and users understanding of those. Thank you for your contributions.

image

bsteffl avatar Feb 03 '17 14:02 bsteffl

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.