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

[Bug][a11y]: Opening the preference modal using keyboard navigation gives no feedback #688

Open mrleblanc101 opened 1 month ago

mrleblanc101 commented 1 month ago

Expected Behavior

When you open the preference modal, the focus should be transfered to the modal so that the screen reader actually says something.

Current Behavior

The focus stays on the button and nothing is said by the screen reader.

Steps to reproduce

  1. Activate VoiceOver,
  2. Tab inside the popup until you focus the "Manage preference" button
  3. Press enter to open the preference modal

Proposed fix or additional info.

No response

Version

3.0.1

On which browser do you see the issue?

Firefox, Chrome, Safari, Microsoft Edge