Skip to content

Basic Catalog components not rendering accessibility attributes (was: Restaurant Finder example: accessibility of "Book Now") #1410

@AutoSponge

Description

@AutoSponge

The interface produced violates WCAG 2.4.6 by creating multiple "Book Now" buttons that perform different actions.

What should happen is something like this:

<button style="..."><span style="...">Book<span class="sr-only"> Mott 32 </span>Now</span></button>
<button style="..." aria-label="book mott 32 now"><span style="...">Book Now</span></button>
<button style="..." aria-labelledby="book mott32 now"><span style="..."><span id="book">Book</span>&nbsp;<span id="mott32" style="display:none"> Mott 32 </span><span id="now">Now</span></span></button>

What's responsible for building "invisible" text of the interface? Is it the JSON (maybe the schema is incomplete), the composer, or better inference instructions?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions