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.

ui5-dialog: Accessibility: using header slot causes broken aria-labelledby reference

See original GitHub issue

Describe the bug The outermost <section> element in the ui5-dialog’s shadow DOM has aria-labelledby="ui5-popup-header". When using the ui5-dialog’s header slot instead of header-text, any elements could be placed inside ui5-popup-header. Simply referring to the header container in this scenario would render aria-labelledby as useless.

To reproduce Steps to reproduce the behavior:

  1. Add ui5-dialog to the DOM
  2. Use header slot with ui5-button and ui5-title
  3. Note that ui5-popup-header in the ui5-dialog’s shadow DOM refers to the header container, not the actual element containing the header text.

Isolated example https://codesandbox.io/s/ui5-webcomponents-forked-rosol?file=/index.html

Expected behavior Not sure if this is the most elegant solution, but it might be good to expose an aria-label value as a parameter so that the developer can pass in a string as the screenreader label.

Screenshots image image

Context

  • UI5 Web Components version: 0.29.4
  • OS/Platform: Windows

Affected components <ui5-dialog>

Log output / Any errors in the console: None

Organization: SuccessFactors

Priority: Medium

  • Is accessibility one (Screen Reader, Keyboard Handling)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ilhan007commented, Apr 29, 2021

Hello @agauyeung The fix is released with 0.29.15

1reaction
ivoplashkovcommented, Feb 19, 2021

Hi @agauyeung,

Thanks for reporting this issue! I have discussed the issue with our accessibility expert, therefore I am forwarding it to the coresponding team.

Regards, Ivaylo

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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