Skip to content

Commit 4839dc2

Browse files
gabalafoudrammock
authored andcommitted
Fix tabbed panel colors (#1567)
1 parent de547eb commit 4839dc2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pydata_sphinx_theme/assets/styles/extensions/_sphinx_design.scss

+6-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ html[data-theme="light"] {
179179
transparent; // top LR bottom
180180
border-width: 0.125rem 0.125rem 0;
181181
border-radius: 0.125rem 0.125rem 0 0;
182-
background-color: var(--pst-color-background);
182+
background-color: var(--pst-color-on-background);
183183
transform: translateY(0.125rem);
184184
color: var(--pst-color-primary);
185185
}
@@ -207,6 +207,10 @@ html[data-theme="light"] {
207207
padding: 0 0.75em;
208208
margin-inline-end: 0.25rem;
209209
line-height: 1.95;
210+
211+
html[data-theme="dark"] & {
212+
background-color: var(--pst-color-on-background);
213+
}
210214
}
211215

212216
// panel
@@ -215,6 +219,7 @@ html[data-theme="light"] {
215219
border-radius: 0.1875rem;
216220
box-shadow: unset;
217221
padding: 0.625rem;
222+
background-color: var(--pst-color-on-background);
218223
}
219224
}
220225

0 commit comments

Comments
 (0)