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

WordPress Trac noreply at wordpress.org
Sun Aug 31 05:06:21 UTC 2025


#63878: Backport: add support for text inputs on the elements API
-------------------------------------+------------------------------
 Reporter:  onemaggie                |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Themes                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------

Comment (by rollybueno):

 == Test Report
 === Description
 This report validates whether the indicated patch works as expected.

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/9600

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.29
 - Server: nginx/1.29.0
 - Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
 - Browser: Chrome 139.0.0.0
 - OS: Linux
 - Theme: Twenty Twenty-Five 1.3
 - MU Plugins: None activated
 - Plugins:
   * Gutenberg 21.5.0
   * Test Reports 1.2.0

 === Steps
 1. Enable **Gutenberg → Experiments → Blocks: add Form and input blocks**.
 2. Create a new page. Insert one Form block and add text, email, url,
 password, search, tel, textarea, and a submit button.
 3. Visit the page on the front-end.
 4. In the active theme add the following to `theme.json` under `elements`,
 then refresh:


 {{{
   "elements": {
     "textInput": {
       "border": {
         "radius": "0",
         "style": "solid",
         "width": "1px",
         "color": "red"
       },
       "color": {
         "text": ""
       },
       "typography": {
         "fontFamily": "var(--wp--preset--font-family--inter)"
       }
     }
   }

 }}}

 ✖️ - the patch does not work

 === Additional Notes
 - Used `https://schemas.wp.org/trunk/theme.json` as the $schema
 - Got an error `Property textInput is not allowed`
 [[Image(https://i.imgur.com/DPQmD0Q.png)]]
 - No style updates on the input field

 === Supplemental Artifacts
 Before:
 [[Image(https://i.imgur.com/9NGqgkZ.png)]]

 After:
 [[Image(https://i.imgur.com/pU0NMeb.png)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63878#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list