Skip to content

Commit 84f607f

Browse files
committed
fix: wrap h4 CSS selectors in :global() to silence unused-selector warnings
The h4 elements are injected by MDsveX markdown rendering at runtime, not present in the static Svelte template, so Svelte's scoped CSS analyser correctly cannot find them. Using :global() mirrors how the existing blockquote rule in the same file is already handled.
1 parent 904f4c5 commit 84f607f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/routes/blog/deploying-torrust-tracker-with-the-deployer

src/routes/blog/deploying-torrust-tracker-with-the-deployer/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ docker run --rm \\
15981598
color: rgba(245, 245, 245, 0.88);
15991599
}
16001600
1601-
h4 {
1601+
:global(h4) {
16021602
font-size: 1.25rem;
16031603
font-weight: bold;
16041604
padding-top: 1rem;
@@ -1679,7 +1679,7 @@ docker run --rm \\
16791679
.content-preview > ol,
16801680
.content-preview > h2,
16811681
.content-preview > h3,
1682-
.content-preview > h4 {
1682+
:global(.content-preview > h4) {
16831683
margin-bottom: 1rem;
16841684
}
16851685

0 commit comments

Comments
 (0)