• Resolved Frank Noack

    (@frank-noack)


    Dear WordPress Plugin Team,

    How can I set the tabindex to “-1”.
    Currently it is set to 1.

    Is there a WordPress filter for this?

    Thank you very much for an answer

    Frank

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi Frank,

    What element are you trying to change the tabindex on?

    Thread Starter Frank Noack

    (@frank-noack)

    Hello and thank you for the feedback,

    in GoogleSpeed Insights, this is recommended under the accessibility item. tabindex=0 or tabindex=-1

    https://dl.dropboxusercontent.com/s/fx3ec3h6sm71cn6/Tabindex1.jpg

    My current status is tabindex=1

    Frank

    • This reply was modified 2 years, 1 month ago by Frank Noack.
    • This reply was modified 2 years, 1 month ago by Frank Noack.
    • This reply was modified 2 years, 1 month ago by Frank Noack.
    Plugin Author sevenspark

    (@sevenspark)

    Hi Frank,

    The default toggle button is given a tabindex of 1 so that it will be the first element focused when tabbing through the site, since it appears visually at the top.

    This is because the button is actually injected into the document in the footer, then positioned via CSS at the top. If the tabindex were set to 0, it would actually be the last thing you’d focus when tabbing through the page. Generally you want the user to be able to access the menu early on for the best UX.

    If you add a custom Toggle within the flow of the document (within your header, for example, rather than using the default toggle), then the tabindex will be set to 0 so that it will be focused within the normal flow.

    Hope that makes sense ??

    Thread Starter Frank Noack

    (@frank-noack)

    Yes, that makes sense. Thank you for the explanation.
    Frank

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘tabindex”-1″’ is closed to new replies.