Skip to content

Add an API to set aria-level for the heading of the accordion panel #6900

@jcgueriaud1

Description

@jcgueriaud1

What is the problem?

Currently the <vaadin-accordion-heading> has a role heading but you can't set the aria-level.
So it's considered as level 2 which is not necessary the required level in a page.

Is it possible to add an API for it?

image

At least VoiceOver + Chrome and Safari are detecting Heading 2 in this page https://vaadin.com/docs/latest/example?embed=accordion-basic-wc.js&import=component/accordion/accordion-basic.ts

Browsers

  • Chrome
  • Firefox
  • Safari
  • Safari on iOS
  • Edge

Screen Readers

  • None
  • NVDA
  • JAWS
  • VoiceOver on MacOS
  • VoiceOver on iOS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions