Skip to content

Commit

Permalink
Add 'tabindex=-1' to the featured image markup, to improve accessibil…
Browse files Browse the repository at this point in the history
…ity.
  • Loading branch information
laurelfulford committed Apr 2, 2018
1 parent 72e34ef commit 43cfcb9
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 43cfcb9

Please sign in to comment.