[wp-trac] [WordPress Trac] #63878: Backport: add support for text inputs on the elements API

WordPress Trac noreply at wordpress.org
Tue Oct 21 13:47:36 UTC 2025


#63878: Backport: add support for text inputs on the elements API
-------------------------------------------------+-------------------------
 Reporter:  onemaggie                            |       Owner:  scruffian
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.9
Component:  Themes                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing gutenberg-   |     Focuses:
  merge                                          |
-------------------------------------------------+-------------------------

Comment (by scruffian):

 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/63878#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list