[wp-trac] [WordPress Trac] #58598: Allow non-block themes to add theme support for border settings

WordPress Trac noreply at wordpress.org
Thu Jun 22 10:39:20 UTC 2023


#58598: Allow non-block themes to add theme support for border settings
-------------------------+---------------------
 Reporter:  poena        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.3
Component:  Themes       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------
Changes (by poena):

 * keywords:   => has-patch


Comment:

 == Testing instructions

 Activate a classic theme.

 Open the themes functions.php and locate a setup function or similar that
 uses add_action( 'after_setup_theme',.For example, if you are using Twenty
 Twenty-One, look for the function called {{{twenty_twenty_one_setup()}}}

 Add {{{add_theme_support( 'border' );}}} inside that function.

 Open the block editor.
 Add a block that supports borders, for example, a group.
 Confirm that the border controls are available in the block settings
 sidebar.

 Adjust the border width, style, and radius.
 Select a custom border color using the color picker. Confirm that the
 border works in the editor and the front.

 - I am suggesting the color picker because themes need to add their own
 CSS to make the ''custom theme palette'' colors work.
 - Some themes already style the block borders; it is up to each theme
 developer to adjust CSS where needed if they want to opt-in to the
 controls.

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


More information about the wp-trac mailing list