Repository navigation
Global Styles: Expose Labels under Form controls - #81786
Draft
amitraj2203 wants to merge 3 commits into
Draft
amitraj2203 wants to merge 3 commits into
amitraj2203 wants to merge 3 commits into
Conversation
Adds the label element to the Form controls screen so labels can be styled from Global Styles without editing theme.json. Fixes #81650.
|
Size Change: +88 B (0%) Total Size: 7.73 MB 📦 View Changed
|
MaggieCabrera
force-pushed
the
codex/global-styles-forms-section
branch
2 times, most recently
from
September 15, 2026 15:20
705c9d0 to
6639633
Compare
MaggieCabrera
force-pushed
the
codex/global-styles-forms-section
branch
from
September 29, 2026 10:30
f20da95 to
f3c0c96
Compare
MaggieCabrera
force-pushed
the
codex/global-styles-forms-section
branch
from
October 14, 2026 18:58
c931c87 to
1680f55
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Adds the
labelelement to the Form controls screen in Global Styles.Part of #34198. Fixes #81650.
Stacked on #81645 — this PR targets that branch and should merge after it.
Why?
Labels can be styled in
theme.jsonsince #81160, but there was no UI for it. This exposes them alongside Inputs and Selects.How?
Adds Labels to the typography and color element lists on the Form controls screen, a description entry, and the
/elements/form-controls/typography/labelroute.Testing Instructions
Note: #81645's base predates #81160, so on this branch as-is the control renders but does not apply. To test, merge
trunkin first — that is the state verified below, and the state that will exist once #81645 is rebased.<label>on the front end.Verified locally: selecting a colour writes
styles.elements.label.color.textand emitslabel { color: var(--wp--preset--color--accent-1); }.Use of AI Tools
An AI coding assistant was used.