Open mkkeck opened 3 years ago
@sagarnasit is going to have a look at this.
This change would make writing CSS for alternate button styles so much easier, though at the same time I shudder to think how disruptive doing this would be to existing styles that assume the is-style- class would be applied to the wrapper element.
This also makes me question why the wrapper element would need to exist? I'd be curious to hear any historical context for why it was added in the first place.
What problem does this address?
Reading changelogs and documentations there is described that button classes and styles have to be applied to
wp-block-button__link
instead ofwp-block-button
. But selecting for example the button variantis-style-outlined
is added to thewp-block-button
instead as suggested to thewp-block-button__link
.What is your proposed solution?
I think, this should be updated in documentation or the button block should be updated.