fix: bold formatting not visible in rich text editor (#2731)

The editor_content CSS class used --page-body-font-weight-bold without
a fallback value. This variable is only injected in the resume preview
context (via use-css-variables.tsx), so in the editor UI the variable
was undefined, causing <strong> tags to render with no visible weight
change.

Adding a 'bold' fallback ensures bold text is correctly displayed in
the editor regardless of whether the CSS variable is set.

Fixes #2730
This commit is contained in:
Kyle Tse
2026-02-24 09:11:35 +00:00
committed by GitHub
parent 8b3f3bcc35
commit 4d50cd9b71
+2 -2
View File
@@ -167,11 +167,11 @@
}
strong {
font-weight: var(--page-body-font-weight-bold);
font-weight: var(--page-body-font-weight-bold, bold);
}
a {
font-weight: var(--page-body-font-weight-bold);
font-weight: var(--page-body-font-weight-bold, bold);
text-decoration: underline;
text-underline-offset: 0.15rem;
}