Skip to content

Commit eb21df7

Browse files
authored
fix: mark selectors as global to workaround Svelte CSS bug (sveltejs#508)
related to sveltejs#482
1 parent 6f757e7 commit eb21df7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/svelte.dev/src/routes/docs/[...path]/OnThisPage.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@
8181
@media (max-width: 1199px) {
8282
margin: 4rem 0;
8383
84-
&:not(:has(li:nth-child(2))) {
84+
/* TODO remove :global once https://github.com/sveltejs/svelte/issues/13779 is fixed */
85+
:global(&:not(:has(li:nth-child(2)))) {
8586
/* hide widget if there are no subheadings */
8687
display: none;
8788
}
@@ -155,7 +156,8 @@
155156
rotate: 90deg;
156157
}
157158
158-
& + nav {
159+
/* TODO remove :global once https://github.com/sveltejs/svelte/issues/13779 is fixed */
160+
:global(& + nav) {
159161
display: block;
160162
}
161163
}

0 commit comments

Comments
 (0)