Skip to content
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.

Buttons without text are inaccessible #342

@marcysutton

Description

@marcysutton

In material-button, we attempt to automatically add accessible names by utilizing material.services.aria to copy text content to the aria-label property. However, on buttons without text content, aria-label is injected with an empty string, allowing inaccessible components with no warning being logged to the developer.

For example: the FAB buttons in the material-button demo do not have any text, however an empty string passed through to aria.expectAttribute comes back as angular.isDefined("") === true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a11yThis issue is related to accessibilitytype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions