You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
When using $materialAria.expect() to handle labeling of the material-slider component, unless developers provide a custom aria-label attribute themselves (and few will), no useful label is generated nor is a warning logged to alert the developer. For example: because material-slider injects a model value like 70 as text, $materialAria.expect() copies that text into an aria-label, but that is not a useful label for a slider.
See aria-label="70" and the highlighted span (child node):
Expected behavior:
Developer omits aria-label, so a warning is logged telling them to do so.
Developer includes aria-label and the purpose of the component is clearly communicated to AT users. Useful labels would be "Volume" or "Rating 2/5"