Skip to content

Commit 78e36bf

Browse files
fix: add missing var() wrappers to CSS custom properties (#74)
Six CSS declarations used bare custom property names (e.g. `color: --pg-text`) instead of the required `var()` function (e.g. `color: var(--pg-text)`). Browsers ignore invalid values, so these styles were silently not applied. Co-authored-by: dobby-yivi-agent[bot] <275734547+dobby-yivi-agent[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 95a0b63 commit 78e36bf

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib/components/Header.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
130130
&.selected a {
131131
text-decoration: 2px underline;
132-
text-decoration-color: --pg-text;
132+
text-decoration-color: var(--pg-text);
133133
text-underline-offset: 4px;
134134
}
135135
@@ -144,7 +144,7 @@
144144
height: 2px;
145145
bottom: 0;
146146
left: 0;
147-
background-color: --pg-text;
147+
background-color: var(--pg-text);
148148
transform-origin: bottom right;
149149
transition: transform 0.25s ease-out;
150150
}

src/lib/components/LocaleSwitcher.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
131131
.selected .language-label {
132132
text-decoration: 2px underline;
133-
text-decoration-color: --pg-text;
133+
text-decoration-color: var(--pg-text);
134134
text-underline-offset: 4px;
135135
}
136136

src/lib/components/filesharing/Done.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
h2 {
8080
font-size: var(--pg-font-size-2xl);
8181
font-weight: var(--pg-font-weight-bold);
82-
color: --pg-text;
82+
color: var(--pg-text);
8383
margin: 0 0 1rem 0;
8484
text-align: center;
8585
}

0 commit comments

Comments
 (0)