-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent styling experience with default block variations (tested with the core/button
block)
#59731
Comments
Hi
You can work around this with the buttons block: I did not understand what this means:
Did you mean that the theme's custom editor stylesheet is not applied? I need clarification on whether you are describing an issue or confirming that the theme stylesheet works as an alternative. Adding CSS through the theme stylesheet is optional; theme.json also has a CSS field. |
Hi @carolinan - thanks for your follow-up. Oh, and a huge thanks for your Full Site Editing website that's an indispensable treasure trove!!
I'm nor sure this would work - if my understanding is correct, with The issue I'm reporting here is about this combo:
This is an issue with the state of implementation I could finally use to implement the button styles successfully:
.is-style-outline.is-style-outline.wp-block-button .wp-block-button__link {
/* (...) */
} So, other that the need to define the Frontend is OK, using the less excessive |
The same is true for "core/read-more" - hover and focus are NOT supported... and in this case the workaround from @carolinan will not work. |
What problem does this address?
Not sure if this is a bug report or a feature request, but the styling experience for default Gutenberg blocks with variations is, currently, a living nightmare:
theme.json
file'sstyles.elements.button
subarray,outline
variation) can be defined in thetheme.json
file'sstyles.blocks.core/button
subarray,hover
,active
, andfocus
styles are not supported in thetheme.json
file'sstyles.blocks.core/button
subarray, all these styles should be defined in the theme stylesheet with traditional css.What is your proposed solution?
It would be nice to add support for these pseudo-classes as well in the
theme.json
file'sstyles.blocks.core/button
subarray - so that default variation styling can be fully handled intheme.json
.The text was updated successfully, but these errors were encountered: