Skip to content

AccordionPanel missing aria-level API #9741

Description

@knoobie

Description

The webcomponent says:

  • The WAI ARIA Best Practices also recommend setting aria-level depending
  • on what level the headings are. It is hard to determine the level of a heading
  • algorithmically, and setting it is not strictly required to have an accessible
  • accordion. To keep things easier to use, this element does not set aria-level
  • attribute but leaves that to the developer creating an accordion.

Expected outcome

Accordion::setAriaLevel is present and automatically applies the aria-level to all AccordionPanel

AccordionPanel:.setAriaLevel is present and applies aria-label to the corresponding panel

Minimal reproducible example

.

Steps to reproduce

.

Environment

Vaadin version(s): latest

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions