[wp-trac] [WordPress Trac] #58614: Add a description key to theme.json style variations

WordPress Trac noreply at wordpress.org
Mon Jun 26 18:13:20 UTC 2023


#58614: Add a description key to theme.json style variations
----------------------------------------------+----------------------------
 Reporter:  ramonopoly                        |       Owner:  audrasjb
     Type:  enhancement                       |      Status:  closed
 Priority:  normal                            |   Milestone:  6.3
Component:  Editor                            |     Version:  trunk
 Severity:  normal                            |  Resolution:  fixed
 Keywords:  has-patch gutenberg-merge commit  |     Focuses:  accessibility
----------------------------------------------+----------------------------
Changes (by audrasjb):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56041" 56041]:
 {{{
 #!CommitTicketReference repository="" revision="56041"
 Editor: Add a `description` key to `theme.json` style variations.

 This changeset adds `description` to `VALID_TOP_LEVEL_KEYS` in `class-wp-
 theme-json.php` to allow for accessibility improvements. The description
 is added to
 the ARIA label of the style variation container. If the style variation
 has no description, only the title is used. One purpose is to use the text
 description
 to improve the style variation preview in the WordPress.org theme
 directory.

 See https://github.com/WordPress/gutenberg/pull/45242.

 Props ramonopoly, poena.
 Fixes #58614.

  --Cette ligne, et les suivantes ci-dessous, seront ignorées--

 M    trunk/src/wp-includes/class-wp-theme-json.php
 }}}

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


More information about the wp-trac mailing list