Skip to content

Commit 200d871

Browse files
committed
remove label
1 parent 1811486 commit 200d871

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

src/pydata_sphinx_theme/assets/styles/components/_search.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@
3737
color: var(--pst-color-text-muted);
3838
}
3939

40-
label {
41-
display: flex;
42-
}
43-
4440
input.form-control {
4541
background-color: var(--pst-color-background);
4642
color: var(--pst-color-text-base);

src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/search-field.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
<form class="bd-search d-flex align-items-center"
33
action="{{ pathto('search') }}"
44
method="get">
5-
<label for="{{ search_input_id }}"
6-
aria-label="{{ theme_search_bar_text }}"><i class="fa-solid fa-magnifying-glass"></i></label>
5+
<i class="fa-solid fa-magnifying-glass"></i>
76
<input type="search"
87
class="form-control"
98
name="q"
10-
id="{{ search_input_id }}"
119
placeholder="{{ theme_search_bar_text }}"
10+
aria-label="{{ theme_search_bar_text }}"
1211
autocomplete="off"
1312
autocorrect="off"
1413
autocapitalize="off"

src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
<label class="overlay overlay-secondary" for="pst-secondary-sidebar-checkbox"></label>
6565
{# A search field pop-up that will only show when the search button is clicked #}
6666
<dialog class="search-button__search-container">
67-
{%- set search_input_id="search-input-hidden" -%}
6867
{% include "../components/search-field.html" %}
6968
</dialog>
7069

src/pydata_sphinx_theme/theme/pydata_sphinx_theme/search.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ <h1>{{ _("Search") }}</h1>
99
<p>{% trans %}Please activate JavaScript to enable the search functionality.{% endtrans %}</p>
1010
</div>
1111
</noscript>
12-
{%- set search_input_id="search-input-results-page" -%}
1312
{% include "../components/search-field.html" %}
1413
<div id="search-results"></div>
1514
</div>

0 commit comments

Comments
 (0)