-
Notifications
You must be signed in to change notification settings - Fork 360
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
Blockbase: move button padding styles from ponyfill to theme.json #5901
Conversation
My main concern with this is that the search and file blocks also match the same button style. I'm trying to introduce a button element block to help deal with that: WordPress/gutenberg#40260 |
Funny, I thought I had left comments on this already. I also wanted to note that the 'outline' styles of the button don't follow the padding rules, however leveraging styling buttons "The Blockbase Way" does. Here is an example from this branch (with padding set to 35 px): Also this behavior won't work as expected in any of the Blockbase children. This is Quadrat in regular then hover: That's in addition to the "other non-block buttons" that @scruffian mentions. I do think that the button element could definitely help that out, but we also have the hover state management that needs to be dealt with, as well as rolling those details into block styles (such as the outline style) that needs to be figured out and dealt with as well before we can move on from this method of button styling in Blockbase. |
@pbking addressed the issues in blockbase and in the child themes. All other themes needs to be compiled and verified. |
Similar to other block themes, I moved the button hover styles to blockbase/style.css in blockbase. However, these styles are not getting applied to child themes such as |
2a01ba9
to
456e5d1
Compare
Anything that Blockbase needs to make available to child themes should still reside in |
Any changes that require child themes to change isn't a change we can make for Blockbase. There are an unknown number of themes outside of Automattic (and even inside Automattic not under our management) that would need to change. So any changes we make to Blockbase (at this point) should not require changes to child themes. |
@madhusudhand I took a look at this and I'm not sure why I was opposed earlier. The changes to the child themes are reasonable. I'm knocking this branch about and it's the best fix. Thank you for working on this. I'll push the change rebuilding the rest of the child themes css. |
d763b10
to
0a80ee5
Compare
Refactor/blockbase color admin (#6043) Moved templates from old folder location to new (#6073) Blockbase: Implement the Button elements API (#6041) Blockbase: Implement Comment Block and removed CSS (#6080) Fix/migrate blockbase font self hosted (#6123) Blockbase children: update comments block (#6153) Blockbase: Changed the trigger to render social icons (#6079) Blockbase: move button padding styles from ponyfill to theme.json (#5901) Co-authored-by: Grant Kinney <[email protected]> Co-authored-by: Jeremy Yip <[email protected]> Co-authored-by: MaggieCabrera <[email protected]> Co-authored-by: madhusudhand <[email protected]>
Closing: Work merged in #6167 |
Changes proposed in this Pull Request:
Moved core/button block padding styles from ponyfill to theme.json so that global styles can be configured.
Screenshots
Editor:
Frontend:
Related issue(s):
Fixes: #5856
Related: #5847