Skip to content

Commit

Permalink
fix: mark selectors as global to workaround Svelte CSS bug (#508)
Browse files Browse the repository at this point in the history
related to #482
  • Loading branch information
dummdidumm authored Oct 22, 2024
1 parent 6f757e7 commit eb21df7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/svelte.dev/src/routes/docs/[...path]/OnThisPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
@media (max-width: 1199px) {
margin: 4rem 0;
&:not(:has(li:nth-child(2))) {
/* TODO remove :global once https://github.com/sveltejs/svelte/issues/13779 is fixed */
:global(&:not(:has(li:nth-child(2)))) {
/* hide widget if there are no subheadings */
display: none;
}
Expand Down Expand Up @@ -155,7 +156,8 @@
rotate: 90deg;
}
& + nav {
/* TODO remove :global once https://github.com/sveltejs/svelte/issues/13779 is fixed */
:global(& + nav) {
display: block;
}
}
Expand Down

0 comments on commit eb21df7

Please sign in to comment.