Skip to content
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
@gkalpak

Description

@gkalpak

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:

  1. ngMin/ngMax will also result in attr.min/max being updated, but only after ngAria has set aria-valuemin/max. As a result, ngAria is effectively not taking into account ngMin/ngMax (while I think it should).
  2. 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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions