Open
Bug 1980483
Opened 8 months ago
Updated 1 month ago
Provide a way to exclude the <article> nested in <moz-card> from the a11y tree
Categories
(Toolkit :: UI Widgets, enhancement)
Toolkit
UI Widgets
Tracking
()
NEW
People
(Reporter: hjones, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [recomp])
In discussing our plan for implementing the new settings designs by using <moz-fieldset>s wrapped in <moz-card>s accessibility folks mentioned that we would ideally exclude the <article> in the card from the accessibility tree, since <moz-fieldset> is already serves to group everything. We would still want to expose the <article> in all other cases, regardless of whether or not it has a heading. Likely the easiest way to achieve this would just be to add support for a role property/attr to moz-card that would be mapped to the inner <article> element. We could then supply role="presentation" or something similar.
static properties = {
role: { type: String, mapped: true },
...
}
...
<article role=${ifDefined(this.role)}>
...
</article>
Updated•8 months ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•