mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-12 14:05:08 +10:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user