dom-accessibility-api
Advanced tools
Changelog
0.6.1
#934 8acefc3
Thanks @alonidiom! - Support aria-description
as descriptor
#933 a593ee0
Thanks @jlp-craigmorten! - Support "none"
role as a synonym for the "presentation"
role
Changelog
0.6.0
215955e
Thanks @MatanBobi! - add an isDisabled
function to check if elements are disabled or notChangelog
0.5.14
a1daca5
Thanks @nolanlawson! - Follow aria-labelledby and aria-describedby if they point to elements in the same shadow root.Changelog
0.5.13
#811 5b0f48e
Thanks @eps1lon! - Prefer button subtree over title
attribute.
const name = computeAccessibleName(<button title="from-title">from-content</button>);
-'from-title' === name
+'from-content' === name
<button title="from-title">from-content</button>
would previously compute the accessible name "from-title".
This is correct in ACCNAME 1.2 but is changed in the latest editors draft.
The latest editors draft specifically refers to HTML-AAM which says that the subtree should take precedent over the title
attribute.
computeAccessibleName
now calculates "from-content" as the accessible name.
Changelog
0.5.12
de554b0
Thanks @pablo-abc! - Remover circular dependency, which fixes warnings thrown in certain environments.