material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[MaterialToolbar] Title not marked as heading for accessibility

Open albertvaka opened this issue 1 year ago • 1 comments
trafficstars

Expected behavior: The title TextView of the toolbar should be marked as a heading so screen readers describe it as so.

Source code:

  • https://github.com/material-components/material-components-android/blob/master/docs/components/TopAppBar.md
  • https://github.com/material-components/material-components-android/blob/master/lib/java/com/google/android/material/appbar/MaterialToolbar.java

Android API version: Any

Material Library version: Any

Device: Any

albertvaka avatar Feb 20 '24 19:02 albertvaka

Note: Apparently there's way different from headings [1] to designate titles [2] which we should use instead.

[1] https://www.w3.org/WAI/WCAG21/Understanding/section-headings.html [2] https://www.w3.org/WAI/WCAG21/Understanding/page-titled

albertvaka avatar Feb 27 '24 12:02 albertvaka