Expose method to get current active style #14336
Labels
[Feature] Theme Style Variations
Related to style variations provided by block themes
[Type] Enhancement
A suggestion for improvement.
Is your feature request related to a problem? Please describe.
Consider plugin author wanting to show or disable different block sidebar settings depending on active style.
wp-editor
'sblockStyles
component hasgetActiveStyle
method but it isn't exposed to be used outside the package:gutenberg/packages/editor/src/components/block-styles/index.js
Lines 22 to 44 in cb809b9
Describe the solution you'd like
Please export utils to modify styles; get lists, get active state, change styles so that plugin authors can build more complex sidebar settings around these features.
Describe alternatives you've considered
It's obviously already possible to use these methods by just copying them directly to block code. Boo code duplication.
The text was updated successfully, but these errors were encountered: