You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v4.x
v5.x
v6.x
Current Behavior
While working with a community member, it was observed that there is no way to modify the role attribute for the IonToast and IonAlert components.
Expected Behavior
As a developer, I would like to have the ability to set the role attribute as my application would like to set this attribute to alert for both components.
IonAlert sets role="dialog" but in this application's accessibility context it needs to be set to "alert".
Steps to Reproduce
Using the AlertController and ToastController there is no ability to manually set the role attribute.
Available in the next release of Framework, ion-toast and ion-alert will accept an htmlAttributes prop, which allows developers to pass arbitrary attributes to the host element, including role. Thanks!
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Prequisites
Ionic Framework Version
Current Behavior
While working with a community member, it was observed that there is no way to modify the
role
attribute for theIonToast
andIonAlert
components.Expected Behavior
As a developer, I would like to have the ability to set the
role
attribute as my application would like to set this attribute toalert
for both components.IonAlert
setsrole="dialog"
but in this application's accessibility context it needs to be set to "alert".Steps to Reproduce
Using the
AlertController
andToastController
there is no ability to manually set therole
attribute.Code Reproduction URL
https://github.com/eric-horodyski/fw-ng-alert-toast-a11y
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: