Skip to content

Aria label being forced always #710

Closed as not planned
Closed as not planned
@zonakusu

Description

@zonakusu

Hi everyone :)

I have a small issue regarding accessibility using ion-button and ion-icon. While using this in combination my screen reader always reads both, even if I'm using aria-hidden on an element.

For me, the most semantic would be to see the ion-button to be the element which is read by the screen reader, while the ion-icon is ignored.

Problem though, is that the aria-label is being forced, regardless if I set ariaLabel to false, null or empty, or when using aria-hidden. Cause for this behaviour if the following block of code.

Of course I love the default aria-label in terms of accessibility, however I would like to control it just a little bit better :)

I would like to create a PR enabling to either not set a default aria-label or disabling aria-label by setting the aria-hidden. My suggestion would be using [ariaLabel]="null" since it would not introduce a new binding.

What do you guys think? Agree with my thoughts? Please spare no comments :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions