question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: users should be able to customize accessibility defaults

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
liamdebeasicommented, Aug 30, 2021

Hi @paulobr01 and @masbrutus,

Thanks for the feedback! Let me look into this issue and see if we can make role easier to customize on ion-header.

1reaction
paulobr01commented, Aug 27, 2021

21327 Hello,

Please understand. I am deaf, blind, and in a wheelchair. Use of iPhone and MacBook with Braille display.

I’m an Ionic programmer. I’ve really liked the language. But Ionic is currently pissing me off a lot.

I can’t delete role = “banner” from my APP. This landmark takes up a lot of space without a Braille display.

My Braille display only has 32 characters per content. I’ve already done something like:

<ion-header translucent =“true” mode =“ios” role ="none"o õion-toolbaro õion-titleo Hi everyone / ion-title> õ/ion-toolbaro õ / ion-header>

But don’t delete the role = “banner” .

The code above is identifier like this on the Braille display in the APP on the iPhone:

banner, Hello everyone, banner landmark

This is horrible using a Braille display. help me take this role = “banner” from my Ionic APP.

Fix this issue is very important. My project is delayed because of this.

Please help me.

Thank!

Read more comments on GitHub >

github_iconTop Results From Across the Web

feat: users should be able to customize accessibility defaults ...
Expected behavior: I would expect that developers can customize most/all of the accessibility defaults we provide to fine tune the user ...
Read more >
Apple previews innovative accessibility features
Apple today previewed innovative software features that introduce new ways for users with disabilities to get the most out of Apple ...
Read more >
Accessibility for People with Disabilities - Google Chromebooks
Easily adjust caption size, color and typeface for a customized closed caption experience. Select “Captions” in your Chromebook's accessibility settings to ...
Read more >
Web Content Accessibility Guidelines 1.0 - W3C
For example, the first guideline explains how content developers can make images accessible. Some users may not be able to see images, ...
Read more >
Microsoft accessibility features
And with the customized settings you can use it on all or part of the ... Commonly used accessibility settings are also available...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found