Closed eric-horodyski closed 3 years ago
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