Skip to content

bug: item and card buttons should inherit aria-label attribute #25885

Description

@DeyBo

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

Hi !

I saw that there are already some components that reflect aria-label property on their native element (i.e. ion-button).
In my case, I use ion-card and ion-item. Sometimes, I set button to true for these, but my custom aria-label is not extended to native button.

Expected Behavior

I wanted to know if it is possible to use aria-label with another way ?
Or maybe make it possible to extend aria-label to native button when ion-item and ion-card has button to true ?

Steps to Reproduce

To see it, you can use ion-item or ion-card with button property to true. Set a custom aria-label to your ion-item or ion-card and check accessibility name.

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 5.4.16 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 6.0.9
@angular-devkit/build-angular : 13.3.9
@angular-devkit/schematics : 12.2.15
@angular/cli : 13.1.4
@ionic/angular-toolkit : 5.0.3

Capacitor:

Capacitor CLI : 2.4.7
@capacitor/core : 2.4.7

Utility:

cordova-res : not installed
native-run : not installed

System:

NodeJS : v16.15.1 (/usr/local/bin/node)
npm : 8.12.1
OS : macOS Monterey

Additional Information

Thanks and sorry for my medium english !

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