orestbida / cookieconsent

:cookie: Simple cross-browser cookie-consent plugin written in vanilla js
https://playground.cookieconsent.orestbida.com/
MIT License
3.68k stars 387 forks source link

Add options to set accessible names #689

Open basterrika opened 1 month ago

basterrika commented 1 month ago

Description

When using the library, PageSpeed Insights returns the error 'Elements with role=“dialog” or role=“alertdialog” do not have accessible names.'.

error

It would be nice if consentModal had a parameter to set this value to fix the error.

Proposed solution

No response

Additional details

No response

orestbida commented 4 weeks ago

Fair enough.

By the way, this occurs only when you omit the title.

basterrika commented 4 weeks ago

Does this mean that the parameter will be added or that I have to settle for the title? 😅

orestbida commented 4 weeks ago

Yes, there will be a new field to handle cases like yours.