[wp-trac] [WordPress Trac] #63555: Backport Global Styles: add support for select or dropdown elements

WordPress Trac noreply at wordpress.org
Wed Jun 11 22:09:33 UTC 2025


#63555: Backport Global Styles: add support for select or dropdown elements
-------------------------------------+------------------------------
 Reporter:  onemaggie                |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Editor                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-test-info  |     Focuses:
-------------------------------------+------------------------------
Changes (by SirLouen):

 * keywords:  has-patch => has-patch has-test-info


Comment:

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

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

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.27.5
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 137.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Twenty-Three 1.6
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0
   * WooCommerce 9.9.3

 === Testing Instructions
 1. Install WooCommerce
 2. Add some mock data (some products)
 3. Edit `woocommerce/src/Blocks/BlockTypes/CatalogSorting.php`. Around
 line 39 add something like:
 {{{
 $catalog_sorting = $this->add_wp_element_select_class( $catalog_sorting );
 }}}
 This will add the `wp-element` class to the `Catalog Sorting` Block
 4. Set a block theme like 2023
 5. Go to the Widgets Section and add a Catalog Sorting Block to the
 Sidebar, for example.
 6. Edit the `theme.json` of 2023 theme and add in the `elements` section,
 some colours like described in the OP, mocking Gutenberg's behaviour.

 === Expected Results
 - Select should take the colours indicated

 === Actual Results
 1.  ✅ Colours appear with the patch

 === Supplemental Artifacts
 Sample Demo:
 [[Image(https://i.imgur.com/oD44hXO.png)]]

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


More information about the wp-trac mailing list