Is there a way to remove the .is-style prefix in an element? #17554
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Feature] Theme Style Variations
Related to style variations provided by block themes
Needs Technical Feedback
Needs testing from a developer perspective.
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Enhancement
A suggestion for improvement.
I'm using wp.blocks.registerBlockStyle to add a style variation to a text element:
wp.blocks.registerBlockStyle( 'core/heading', { name: 'default', label: 'Default', isDefault: true, } );
Is there an option to remove the .is-style prefix that appears in this element, in this case .is-style-default?
Maybe we could add a
hasPrefix: false
parameter?The text was updated successfully, but these errors were encountered: