[wp-trac] [WordPress Trac] #63555: Backport Global Styles: add support for select or dropdown elements
WordPress Trac
noreply at wordpress.org
Tue Oct 21 13:47:36 UTC 2025
#63555: Backport Global Styles: add support for select or dropdown elements
-------------------------------------------------+-------------------------
Reporter: onemaggie | Owner: scruffian
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-test-info dev- | Focuses:
feedback gutenberg-merge |
-------------------------------------------------+-------------------------
Changes (by scruffian):
* owner: (none) => scruffian
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"61031" 61031]:
{{{
#!CommitTicketReference repository="" revision="61031"
Editor: Add support for select elements to theme.json.
Adds support for the select element in theme.json so that theme builders
and extenders can be style select elements consistently.
We are targeting the select HTML element rather than adding a CSS class,
as we do for other elements that theme.json supports. This commit adds no
extra styling unless a theme opts in to use this and the specificity of
any generated CSS with the element is 0.
See original Gutenberg PR:
https://github.com/WordPress/gutenberg/pull/70379.
Example usage:
{{{
"elements": {
"select": {
"color": {
"text": "red",
"background": "blue"
}
}
}
}}}
Props onemaggie, joen, get_dave, wildworks, ocean90, mikachan, poena,
SirLouen, tusharbharti, yashjawale, abcd95.
Fixes #63555. See #63878.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63555#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list