searchform.php replace assistive-text by sr-only

Replace assistive-text by the proper BS4 class for screen reader text (sr-only)
This commit is contained in:
IanDelMar 2018-08-20 08:32:04 +02:00 committed by GitHub
parent 699bdef17f
commit eb611ede1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<label class="assistive-text" for="s"><?php esc_html_e( 'Search', 'understrap' ); ?></label>
<label class="sr-only" for="s"><?php esc_html_e( 'Search', 'understrap' ); ?></label>
<div class="input-group">
<input class="field form-control" id="s" name="s" type="text"
placeholder="<?php esc_attr_e( 'Search &hellip;', 'understrap' ); ?>" value="<?php the_search_query(); ?>">