ampproject / ampproject/amphtml

[Amp-accordion] overuse [noise] of aria/role/section

Open
#32,549 9 comments 0 reactions 1 assignee Claimed by @caroqliu View on GitHub
Stale Type: Feature Request WG: bento WG: components
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

## Describe the new feature or change to an existing feature you'd like to see

We are using amp-accordion in a way that does not require all those aria-labelledby and role=region added by the component
We use a subtitle (h3) then content relevant to it. The contents of each accordion is obvious by the semantic structure (correctly applied!)
An accessibility consultant also confirmed us that it's just been too noisy.
I'm hoping there would be a way to deactivate those added role/aria-labelledby, and even the option of a section per item is too much in our case.

## Describe alternatives you've considered

We tried adding another role ourselve but its been automatically overwritten

## Additional context

![image](https://user-images.githubusercontent.com/5544811/107415381-4d2e5500-6ae1-11eb-8d76-06a263f9d72d.png)
![image](https://user-images.githubusercontent.com/5544811/107415428-5cad9e00-6ae1-11eb-8a6e-28a123679482.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.