Skip to content
Permalink
Browse files

Improved screen reader usage

  • Loading branch information...
nicolas-van committed Aug 14, 2019
1 parent 5b9255c commit fc681d0c3f03bce0ec81775c740e56c15fb7fd82
Showing with 5 additions and 7 deletions.
  1. +3 −1 functions.php
  2. +1 −1 header.php
  3. +1 −5 scss/wp.scss
@@ -211,12 +211,14 @@ function simple_bootstrap_display_post_meta($short=true) {
<li class="list-inline-item">
<a href="<?php the_permalink() ?>">
<i class="fas fa-clock"></i>
<span class="sr-only"><?php echo __( 'Posted on', 'simple-bootstrap' ) ?></span>
<?php echo get_the_date(); ?>
</a>
</li>
<li class="list-inline-item">
<a href="<?php echo get_author_posts_url(get_the_author_meta('ID'));?>">
<i class="fas fa-user"></i>
<span class="sr-only"><?php echo __( 'Posted by', 'simple-bootstrap' ) ?></span>
<?php the_author(); ?>
</a>
</li>
@@ -242,7 +244,7 @@ function simple_bootstrap_display_post_meta($short=true) {
<?php if ( $tags_list ) : ?>
<li class="list-inline-item">
<i class="fas fa-tag"></i>
<span class="screen-reader-text"><?php echo __( 'Tags:', 'simple-bootstrap' ) ?></span>
<span class="sr-only"><?php echo __( 'Tags:', 'simple-bootstrap' ) ?></span>
<?php echo $tags_list ?>
</li>
<?php endif ?>
@@ -28,7 +28,7 @@
<?php if (has_nav_menu("main_nav")): ?>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="<?php _e('Navigation', 'simple-bootstrap'); ?>">
aria-expanded="false" aria-label="<?php _e('Toggle Navigation', 'simple-bootstrap'); ?>">
<span class="navbar-toggler-icon"></span>
</button>
<?php endif ?>
@@ -372,11 +372,7 @@ body {
.bypostauthor {/**/}

.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
@extend .sr-only;
}

.header-image {

0 comments on commit fc681d0

Please sign in to comment.
You can’t perform that action at this time.