Skip to content
This repository was archived by the owner on Jun 4, 2019. It is now read-only.
This repository was archived by the owner on Jun 4, 2019. It is now read-only.

Consider adding tabindex="0" to dt elements #1

@nikolov-tmw

Description

@nikolov-tmw

Hi there,

I randomly stumbled across your plugin("SO Clean Up Yoast SEO" was shown as a suggestion in the Add New plugin interface of WordPress 😃 and that's how I got to your site) and I though it's pretty cool.

However I noticed that clicking on the images doesn't keep them visible(instead it defaults back to the first image). I experimented a bit and it seems like adding tabindex="0" to all of the <dt> elements, allows the user to both tab through the different thumbnails and for the element to remain focused after it was clicked on.

I'd create a pull request if you want, but I feel like that's a pretty straight forward solution that you can add very quickly.

I'm not sure if there are going to be any side effects from this fix. This site http://webaim.org/techniques/keyboard/tabindex says the following about tabindex=0 :

tabindex="0" and tabindex="-1" have special meaning and provide distinct functionality in HTML. A value of 0 indicates that the element should be placed in the default navigation order. This allows elements that are not natively focusable (such as <div>, <span>, and <p>) to receive keyboard focus. Of course one should generally use links and form controls for all interactive elements, but this does allow other elements to be focusable and trigger interaction.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions