Skip to content

Add Block Text Color option to Block Design settings#788

Open
jjroelofs wants to merge 7 commits into8.xfrom
jur/8.x/786-add-block-text-color
Open

Add Block Text Color option to Block Design settings#788
jjroelofs wants to merge 7 commits into8.xfrom
jur/8.x/786-add-block-text-color

Conversation

@jjroelofs
Copy link
Collaborator

Summary

  • Adds a "Block Text Color" color picker (select + custom text field) to Block Design settings, following the same pattern as the existing Block Background option.
  • Registers block_text_color as a CSS variable in the theme settings CSS pipeline.
  • Adds --dxt-setting-block-text-color: inherit default in variables.scss and applies color: var(--dxt-setting-block-text-color) to .region-block-design .block in layout.scss.

Fixes: #786

Test plan

  • Navigate to Appearance > DXPR Theme > Settings > Block Design > Customize Design > Block Element
  • Verify the "Block Text Color" select field appears after "Block Background"
  • Select a predefined color and confirm block text color changes in selected regions
  • Select "Custom" and enter a hex value; confirm the custom color input appears and the text color updates
  • Verify blocks with card/bg-/dxpr-theme-util-background classes are not affected (excluded by the :not() selector)

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>
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 block text color option to Block Design settings

1 participant