Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AOM (Accessible Object Model) - Really quick!

AOM (Accessible Object Model) - Really quick!

stefan judis

May 17, 2018
Tweet

More Decks by stefan judis

Other Decks in Technology

Transcript

  1. element.accessibleNode.role = 'checkbox'; element.accessibleNode.label = 'Want to try it?'; OR

    element.role = "checkbox"; element.ariaLabel = "checkbox"; <wired-toggle></wired-toggle>
  2. let virtualNode = new AccessibleNode(); virtualNode.role = "button"; virtualNode.label =

    "Change Image"; document.body.attachAccessibleRoot(); document.body.accessibleRoot.appendChild(virtualNode);