mui / mui-public

The public mono-repository of MUI (as an organization), see mui/mui-private for the opposite.
80 stars 16 forks source link

[code-infra] Arbitrate between role="presentation" and role="none" #205

Open oliviertassinari opened 2 months ago

oliviertassinari commented 2 months ago

Steps to reproduce

See https://www.digitala11y.com/none-role/

The role “none” was added to act as an alias for role=”presentation”, and both are the same and perform the same action. This was meant to provide clarity for those who were confused by the word “presentation.”

Current behavior

We use both

<div role="presentation">

and

<div role="none">

Expected behavior

We only use one. We have an eslint rule to avoid regressions.

I'm leaning on role="none" because:

Context

https://html5accessibility.com/stuff/2021/04/12/short-note-on-role-none-or-presentation/