This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
icon: Providing empty alt or aria-label attributes do not fully hide icon from assistive tech #10721
Closed
Description
Actual Behavior:
What is the issue? *
Defining alt="" and aria-label="" on md-icon elements do not fully hide the icon from assistive technology. The documentation states that defining those attributes as empty will put aria-hidden="true" on the element, but this doesn't happen.What is the expected behavior? *
Defining either (or both) alt="" or aria-label="" should set aria-hidden="true" to the md-icon element. The icon name should not be used as an alternative aria-label if no aria-label is available. By defining aria-hidden="true" this element this will fully hide the element from assistive technology.
CodePen (or steps to reproduce the issue): *
Details:
Add aria-label="" to an md-icon with role="img" and/or add alt="" to an md-icon with role="img". Use a screen reader to navigate to the image element - It will be navigable by a screen reader but will have no label.
AngularJS Versions: *
AngularJS Version:
AngularJS Material Version:
1.1.4
Additional Information:
Browser Type: *
ChromeBrowser Version: *
Version 58.0.3029.110 (64-bit)OS: *
macOS Sieera Version 10.12.5Stack Traces:
Screen Reader:
Voiceover (likely others as well)