Description
Bug Report
Ionic version:
[x] 5.x
Current behavior:
Often times users will want to customize the accessibility defaults we provide for components. For example, if a user is distributing an app in multiple languages, having a label always be announced in English is not very helpful. Additionally, even if users are distributing an app in English only, they cannot override the defaults we provide.
For example, we add role="banner"
to the Host of ion-header
(https://github.com/ionic-team/ionic/blob/master/core/src/components/header/header.tsx#L148). This may not be desirable to some users and they may wish to use role="none"
; however, they are unable to override this as role="banner"
is always used. On top of this, if we provide any attributes to elements inside the shadow dom, users cannot easily access them to customize them. Users can access them via JS and shadowRoot
, but that is not a sustainable approach.
Expected behavior:
I would expect that developers can customize most/all of the accessibility defaults we provide to fine tune the user experience for their applications.
This thread will be used to track areas where there needs to be improvement regarding this.