Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ngAria module and $ariaProvider configurations are global #11174

Open
sriprabha opened this issue Feb 25, 2015 · 1 comment
Open

ngAria module and $ariaProvider configurations are global #11174

sriprabha opened this issue Feb 25, 2015 · 1 comment

Comments

@sriprabha
Copy link

Currently, when I inject ngAria dependency for one view in the application, it defaults to injecting it across the application and adds all the defaults like tabindex to the HTML semantics.
When I configure ngAria further using $ariaProvider to NOT add the tabindex (for test purpose), the configuration gets applied at other places as well where the dependency on ngAria was not injected. Making ngAria or $ariaProvider more private scoped may provide more flexibility to a developer to provide accessibility support.

@marcysutton
Copy link
Contributor

I wonder if a view-specific override system would work. On Angular Material, we're going to start checking the $ariaProvider to make sure we don't override it. We'd have to take things like that into account when building a more locally-scoped ngAria config. angular/material#600

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants