Skip to content

Fix native font weight overridden by bold checkbox#797

Merged
jjroelofs merged 1 commit into8.xfrom
jur/8.x/796-fix-headings-font-weight-override
Apr 1, 2026
Merged

Fix native font weight overridden by bold checkbox#797
jjroelofs merged 1 commit into8.xfrom
jur/8.x/796-fix-headings-font-weight-override

Conversation

@jjroelofs
Copy link
Copy Markdown
Collaborator

Linked issues

Solution

Added !important to the font-weight declaration in fonts-theme-settings-css.inc so the native font weight from font selection (e.g. 900) is no longer overridden by the headings_bold checkbox CSS. Since themesettings-dxpr_theme.css loads after the theme CSS, source order gives this rule precedence.

Checklist

  • I have read the CONTRIBUTING.md document.
  • My commit messages follow the contributing standards and style of this project.
  • My code follows the coding standards and style of this project.
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Need to run update.php after code changes
  • Requires a change to end-user documentation.
  • Requires a change to developer documentation.
  • Requires a change to QA tests.
  • Requires a new QA test.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.

The headings_bold CSS rule used !important but the native font-weight
from font selection did not, so the bold checkbox always won regardless
of the selected font weight variant.
@jjroelofs jjroelofs merged commit 08a783b into 8.x Apr 1, 2026
1 of 3 checks passed
@jjroelofs jjroelofs deleted the jur/8.x/796-fix-headings-font-weight-override branch April 1, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant