Skip to content

Commit

Permalink
Merge pull request Automattic#1255 from Automattic/add-neg-tabindex-t…
Browse files Browse the repository at this point in the history
…o-featured-images

Add 'tabindex=-1' to the featured image markup, to improve accessibil…
  • Loading branch information
alaczek authored May 29, 2018
2 parents b832261 + 43cfcb9 commit 9274f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function _s_post_thumbnail() {

<?php else : ?>

<a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true">
<a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1">
<?php
the_post_thumbnail( 'post-thumbnail', array(
'alt' => the_title_attribute( array(
Expand Down

0 comments on commit 9274f32

Please sign in to comment.