• Resolved Joe Dolson

    (@joedolson)


    The ‘Accept’ button uses an a element with role=button. In order for an a element to be navigable via the keyboard, it needs to have an href attribute. There are a few viable strategies to make the current “button” accessible:

    1) Add an href attribute so that keyboard focus can be passed. You’ll need to be sure to prevent default behavior on that href attribute to avoid unexpected jumps on the page.

    2) Change to an actual <button> element, which is natively focusable.

    3) Add a tabindex attribute with the value of 0 so that the element can receive keyboard focus without changing sequence in the tab order.

    As it currently stands, a user who is dependent on the keyboard to navigate cannot accept cookies on a site using this plug-in.

Viewing 1 replies (of 1 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @joedolson,

    We are planning on accessibility improvements in the upcoming updates and we will try to address the highlighted issues in development.

Viewing 1 replies (of 1 total)
  • The topic ‘Accept button not accessible via keyboard’ is closed to new replies.