Skip to content

Commit fa59e77

Browse files
committed
Fix CSS variable checker breaking build
For a while now a false negative would occur with the css variable checker (which goal is to ensure we don't reference undefined css variables). Turns out, in omni-search.css one of the var(--font-size-medium), even though it looked correct and with the right characters would not pass a JavaScript equality check thus resulting in the false negative. I just rewrote that line to fix the problem. Even the diff says that they are different, but offer no indication of what is different. 🤷
1 parent 3318986 commit fa59e77

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/css/unison-share/omni-search.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@
376376

377377
& .icon {
378378
color: var(--u-color_icon_subdued);
379-
font-size: var(--fontsize-medium);
379+
font-size: var(--font-size-medium);
380380
}
381381
}
382382

src/css/unison-share/page/code-page.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
--readable-column-width-medium originally is 43 and we're adding 2rem;
88
* */
99
--readable-column-width-medium_original: 43rem;
10-
--readable-column-width-medium: calc(var(--readable-column-width-medium_original) + 2rem);
10+
--readable-column-width-medium: calc(
11+
var(--readable-column-width-medium_original) + 2rem
12+
);
1113
}
1214

1315
.code-page .sidebar .namespace-header {

0 commit comments

Comments
 (0)