-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed as not planned
Labels
a11yAccessibility related issuesAccessibility related issuespackage: core@ionic/core package@ionic/core packagetype: buga confirmed bug reporta confirmed bug report
Description
Bug Report
Ionic version:
[ ] 4.x
[x] 5.x
Current behavior:
In an Ionic app that uses ion-modal, the modal wrapper (with CSS class of the same name) has an attribute of role="dialog", but no aria-label or title. This causes the app to fail accessibility checks, such as axe browser extension.
The issue axe finds is:
- ARIA dialog and alertdialog nodes must have an accessible name
Expected behavior:
The modal wrapper should have either an aria-label attribute or a title, to go with the role attribute.
Steps to reproduce:
- Clone ionicAngular (a minimal Ionic Angular app)
- Install the axe browser extension if not already installed
- Run
ionic servefrom the app root to open the app in the browser - Click on "Show Modal"
- Open DevTools and click on the axe tab
- Choose "Scan all of my page"
- Notice the issue listed above appears in the axe results
Related code:
Sample Ionic Angular app: https://github.com/Ksan8/ionicAngular
Other information:
This is considered an accessibility issue with serious impact. More info on this specific rule can be found on Deque University's documentation for axe.
Ionic info:
Ionic:
Ionic CLI : 6.13.1 (/Users/keziawineberg/.nvm/versions/node/v12.20.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.5.2
@angular-devkit/build-angular : 0.1000.8
@angular-devkit/schematics : 10.0.8
@angular/cli : 10.0.8
@ionic/angular-toolkit : 2.3.3
Capacitor:
Capacitor CLI : 2.4.6
@capacitor/core : 2.4.6
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v12.20.0 (/Users/keziawineberg/.nvm/versions/node/v12.20.0/bin/node)
npm : 7.5.4
OS : macOS Big Sur
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a11yAccessibility related issuesAccessibility related issuespackage: core@ionic/core package@ionic/core packagetype: buga confirmed bug reporta confirmed bug report