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:
parent
699bdef17f
commit
eb611ede1f
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
|
<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">
|
<div class="input-group">
|
||||||
<input class="field form-control" id="s" name="s" type="text"
|
<input class="field form-control" id="s" name="s" type="text"
|
||||||
placeholder="<?php esc_attr_e( 'Search …', 'understrap' ); ?>" value="<?php the_search_query(); ?>">
|
placeholder="<?php esc_attr_e( 'Search …', 'understrap' ); ?>" value="<?php the_search_query(); ?>">
|
||||||
|
|
Reference in New Issue