Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #63555


Ignore:
Timestamp:
06/11/2025 08:20:41 AM (14 months ago)
Author:
onemaggie
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63555

    • Property Keywords has-patch added
    • Property Component GeneralEditor
  • Ticket #63555 – Description

    initial v2  
     1This PR adds a new class that can be used by themers and extenders to style selects or dropdown elements. Right now the experimental form block doesn't have dropdowns in it, but many extenders do, so I wanted to cover them too in line with the work being done at https://github.com/WordPress/gutenberg/pull/70378/
     2
     3We are adding a new class wp-element-select the same way we do for the button element, since it's less disruptive than styling the select element directly and can be slowly adopted by plugins as they see fit
     4
     5This one is a little hard to test without having a native block that has a dropdown in it. What I did was:
     6
     71. alter a third party block to have the wp-element-select class.
     82. added the following to my theme.json file:
     9
     10{{{
     11
     12"elements": {
     13                        "select": {
     14                                "color": {
     15                                        "text": "red",
     16                                        "background": "blue"
     17                                }
     18                        },
     19}
     20
     21}}}
     22
     23