clear icon indicating copy to clipboard operation
clear copied to clipboard

Component accessibility

Open jer3m01 opened this issue 9 months ago • 0 comments

When navigating using keyboard only in clear, you can't tell where the focus is.

Every interact-able component (including scrollable lists) should have a :focus of :focus-visible style, either the same as :hover or something obvious (like an outline).

Clickable images (or anything) should be wrapped inside a button, not a div with onClick.

In addition, every dynamic component should optimally have WAI-ARIA roles and signals (or use native elements). This include: modals, toggles (or switch), toasts, buttons, collapsible, context menus. For these components I'd recommend building on top of https://kobalte.dev. Otherwise the patterns are documented here https://www.w3.org/WAI/ARIA/apg/patterns

jer3m01 avatar May 08 '24 02:05 jer3m01