[wp-trac] [WordPress Trac] #61265: Add class name for block variations

WordPress Trac noreply at wordpress.org
Wed May 22 08:20:16 UTC 2024


#61265: Add class name for block variations
-----------------------------+--------------------
 Reporter:  Bernhard Reiter  |      Owner:  (none)
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  6.6
Component:  General          |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+--------------------
 In order to allow block authors to add custom styling for individual block
 variations, it would be convenient to have a class name automatically
 added for the variation.

 There's some
 [https://github.com/WordPress/gutenberg/blob/c70633dabadb1c9ea846663d4d2b086394993035/packages
 /block-library/src/social-link/index.php#L53-L56 precedent] in the Social
 Icon block, which e.g. for its `WordPress` variation adds the `wp-social-
 link-wordpress` class name (in addition to `wp-social-link`).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61265>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list