Skip to content

Commit 19dfb69

Browse files
12rambaugabalafou
authored andcommitted
fix: set the same background for dark/light (pydata#1443)
* fix: set the same background for dark/light et the same background color for all state of the search field. It is currently only applied when hovered * fix: wrong css selector * Update src/pydata_sphinx_theme/assets/styles/components/_search.scss * Update src/pydata_sphinx_theme/assets/styles/components/_search.scss
1 parent 68c57ed commit 19dfb69

File tree

1 file changed

+3
-1
lines changed
  • src/pydata_sphinx_theme/assets/styles/components

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
}
5353

5454
.form-control {
55+
background-color: var(--pst-color-background);
56+
5557
&:focus,
5658
&:focus-visible {
5759
border: none;
@@ -139,9 +141,9 @@
139141
border-radius: 1.5em;
140142
color: var(--pst-color-text-muted);
141143
padding: 0.5em;
144+
background-color: var(--pst-color-surface);
142145

143146
&:hover {
144-
background-color: var(--pst-color-surface);
145147
border: 2px solid var(--pst-color-link-hover);
146148
}
147149
&:focus-visible {

0 commit comments

Comments
 (0)