[wp-trac] [WordPress Trac] #57460: Backport: appearance-tools theme_support

WordPress Trac noreply at wordpress.org
Fri Jan 13 22:39:14 UTC 2023


#57460: Backport: appearance-tools theme_support
-------------------------------------------------+-------------------------
 Reporter:  ironprogrammer                       |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.2
Component:  Themes                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info needs-testing                     |
-------------------------------------------------+-------------------------
Changes (by ironprogrammer):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests has-
     testing-info needs-testing


Comment:

 == Testing Instructions

 === Setup
 - Disable the Gutenberg plugin, if active.
 - Install and activate a theme that does not use `theme.json` (e.g. a
 "classic" theme").

 === Steps to Test
 1. In the theme's `functions.php` file, add the following
 [https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-
 support/ theme support] (often located in an `after_setup_theme` hook):
 {{{#!php
 add_theme_support( 'appearance-tools' );
 }}}
 2. Create a new post with a Group block. Inside the group, add a Paragraph
 with a link, and add a Buttons block with a few buttons.
 3. Make sure the Settings sidebar is visible (gear icon, upper right of
 editor).
 4. Select the Group, Buttons, and Paragraph blocks to verify the new
 appearance tools style options available in the sidebar.

 === Expected Results
 - ✅ **Color > Link** allows the selection of hyperlink color in the Group
 and Paragraph blocks (not in Buttons).
 - ✅ **Dimensions > Block Spacing** allows spacing between elements to be
 changed. The Buttons block is an easy way to verify this.
 - ✅ The **Border** section is displayed for the Group block, and allows
 changing the border color, style, width, and radius.

   **Test Report Icons:**
   ✅ <= Behavior is ''expected''.
   ❌ <= Behavior is ''NOT expected''.

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


More information about the wp-trac mailing list