This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
bug(ngAria): update aria-valuemin/max
when min
/max
change #11770
Closed
Description
Currently, ngAria
checks attr.min/max
in a 200-priority directive's post-linking function and sets aria-valuemin
/aria-valuemax
accordingly.
There are 2 issues with this approach:
ngMin
/ngMax
will also result inattr.min/max
being updated, but only afterngAria
has setaria-valuemin/max
. As a result,ngAria
is effectively not taking into accountngMin
/ngMax
(while I think it should).- If
min
/max
change later on,aria-valuemin/max
are not updated, resulting in misleading info (accessibility loses 😢).
Luckily, solving (2) will automatically fix (1) as well.
So, I believe that ngAria
should attr.$observe
certain attributes and update aria values accordingly.
This is probably true for other attributes besides min
/max
(@marcy should know better).