Skip to content

Commit

Permalink
update the selector to only target some types
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Jun 13, 2023
1 parent f73935a commit 3ca066d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class WP_Theme_JSON_Gutenberg {
// The block classes are necessary to target older content that won't use the new class names.
'caption' => '.wp-element-caption, .wp-block-audio figcaption, .wp-block-embed figcaption, .wp-block-gallery figcaption, .wp-block-image figcaption, .wp-block-table figcaption, .wp-block-video figcaption',
'cite' => 'cite',
'textInput' => 'textarea, input:where(:not([type=checkbox]):not([type=radio]):not([type=submit]))',
'textInput' => 'textarea, input:where([type=email],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=tel],[type=url])',
);

const __EXPERIMENTAL_ELEMENT_CLASS_NAMES = array(
Expand Down

0 comments on commit 3ca066d

Please sign in to comment.