When a screen reader user is navigating through the page, they are not alerted to the cookie consent form until they get to the bottom of the web page.

Updating the cookie consent markup to include role="alertdialog" should fix this issue.

Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Tec...

Use of the "alertdialog" role requires that the following tags also be added:

  • aria-label or aria-labelledby
  • aria-describedby
CommentFileSizeAuthor
#6 3152550-6.patch3.61 KB_san_
#5 3152550-5.patch0 bytes_san_
#2 3152550-1.patch2.43 KB_san_

Comments

ssteigen created an issue. See original summary.

_san_’s picture

StatusFileSize
new2.43 KB

This is my first time contributing a patch. Please let me know if I'm missing something.

_san_’s picture

Status: Active » Needs review
_san_’s picture

Issue summary: View changes
_san_’s picture

StatusFileSize
new0 bytes

Modified to cover all templates and maintain support for multilingual sites.

_san_’s picture

StatusFileSize
new3.61 KB

Would help if I didn't upload an empty patch file.

svenryen’s picture

Status: Needs review » Reviewed & tested by the community

Nice work! Works like a charm, thanks for helping improve accessibility!

  • ssteigen authored 5df2346 on 8.x-1.x
    Issue #3152550 by ssteigen, svenryen: Use alertdialog role so screen...
svenryen’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.