Skip to content

Commit

Permalink
adds hover state link mapping to elements
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed May 25, 2022
1 parent 23e3018 commit c539d3c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/compat/wordpress-6.1/class-wp-theme-json-6-1.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@
class WP_Theme_JSON_6_1 extends WP_Theme_JSON_6_0 {
const __EXPERIMENTAL_ELEMENT_BUTTON_CLASS_NAME = 'wp-element-button';

/**
* The valid elements that can be found under styles.
*
* @since 5.8.0
* @var string[]
*/
const ELEMENTS = array(
'link' => 'a',
'link:hover' => 'a:hover',
'h1' => 'h1',
'h2' => 'h2',
'h3' => 'h3',
Expand Down

0 comments on commit c539d3c

Please sign in to comment.