Skip to content

feat: add Button Bold font weight option#789

Open
jjroelofs wants to merge 7 commits into8.xfrom
jur/8.x/787-add-button-font-weight
Open

feat: add Button Bold font weight option#789
jjroelofs wants to merge 7 commits into8.xfrom
jur/8.x/787-add-button-font-weight

Conversation

@jjroelofs
Copy link
Collaborator

Summary

  • Adds a new "Button Element" section to the Block Design theme settings with a "Button Bold" checkbox
  • When enabled, applies font-weight: bold to .btn elements via the CSS variable --dxt-setting-button-bold
  • Follows the same pattern as the existing headings_bold setting

Changes

  • features/sooper-block-design/block-design-theme-settings.inc: Added button_el details group with button_bold checkbox field
  • features/sooper-settings/css-variables-theme-settings-css.inc: Registered button_bold as a CSS variable and added value massaging (bold/normal)
  • scss/base/variables.scss: Added --dxt-setting-button-bold: normal default
  • scss/vendor-extensions/bootstrap-5.scss: Applied font-weight: var(--dxt-setting-button-bold) to .btn
  • css/: Compiled CSS artifacts

Fixes: #787

Test plan

  • Navigate to Appearance > DXPR Theme > Settings > Block Design > Customize Design > Button Element
  • Verify the "Button Bold" checkbox appears
  • Enable the checkbox, save settings, and confirm buttons render with bold font weight
  • Disable the checkbox, save settings, and confirm buttons render with normal font weight

github-actions bot and others added 7 commits October 1, 2025 10:11
Co-authored-by: jjroelofs <jjroelofs@users.noreply.github.com>
Primary tabs were being hidden for all users when admin_toolbar_tools
was configured to show local tasks, even for users without toolbar
permissions who couldn't see the tasks in the admin toolbar.

Fixes #609

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Jurriaan Roelofs <jur@dxpr.com>
Co-authored-by: Claude <noreply@anthropic.com>
Previously, tabs were positioned with translate(-50%, -100%) which caused them to be hidden below the header on pages without a page title. Changed to translate(-50%, 0) to fix this issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Adds a "Button Bold" checkbox to the Block Design settings under a new
"Button Element" section. When enabled, buttons get font-weight: bold
via CSS variable --dxt-setting-button-bold.

Fixes: #787
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.

Add Font Weight option to Button element

1 participant