ARIA Accessibility in Angular 2 and 4 -


i have been manually including aria attributes in component templates when came across angular-aria module: https://docs.angularjs.org/api/ngaria

however, angularjs. there equivalent module angular 2 , 4 silently injects aria attributes on components @ runtime?

i have looked @ question: how include ngaria in , angular 2 application? doesn't seem have answer.

your question has short answer , long one, let's see those?

is there equivalent module angular 2 , 4 silently injects aria attributes on components @ runtime?

let's first refer kb angularjs:

using ngaria simple requiring ngaria module in application. ngaria hooks standard angularjs directives , quietly injects accessibility support application @ runtime.

as angular 2 has tried have built-in support aria, there no such equivalent module needed, , there no supplementary 1 i'm aware of.

so, yes, it's implicitly supported, , no, there no such module (required).

accessibility use cases angular include, @ least: (quoted marcy sutton)

  • handling aria-disabled, aria-required, , aria-checked custom controls
  • handling aria-* value attributes on custom controls using ngmodel
  • discouraging click events on non-semantic div elements (could done through documentation)
  • text alternatives: labels form controls, alt images

you can investigate above inspecting rendered output of angular template.

final note: should considered, anyway, still complying manually rules of aria use required, regardless of version of angular(js or 2+) being use; e.g., avoiding assign click events non-semantic elements, or embedding giving label elements not labelable.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -