Forums
Home / Plugin: Cookie Notice & Compliance for GDPR / CCPA / Uncrawlable Link
(@neobabis)
2 years, 10 months ago
Hi!
The “X” button shows up as an Uncrawlable Link in Google Lighthouse.
<a href="javascript:void(0);" id="cn-close-notice" data-cookie-set="accept" class="cn-close-icon" aria-label="Ok">
(@ricaneaga)
2 years, 9 months ago
Can confirm this – the link web.dev gives to solve it is this one – https://developers.google.com/search/docs/advanced/guidelines/links-crawlable
Hope the plugin author will solve this small bug and either remove all hrefs from the buttons that do not have a link behind them, either another solution.
(@dfactory)
Hi,
This should be fixed in just released version 2.2.2
You’ve fixed it but generated another error instead for the same close button.
[aria-*] attributes do not match their roles
Each ARIA role supports a specific subset of aria-* attributes. Mismatching these invalidates the aria-* attributes.
role
aria-*
<span id=”cn-close-notice” data-cookie-set=”accept” class=”cn-close-icon”
https://web.dev/aria-allowed-attr/
Please run a web.dev test before releasing your next update – https://web.dev/measure/
Otherwise this will be a neverending story ??
2 years, 8 months ago
Fixed as well in 2.2.3, replaced aria-label with title attribute