-
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
Button Styling Issue in Marl Theme: Button Text and Background #8628
Comments
Support References This comment is automatically generated. Please do not edit it.
|
I think this is due to inheritance from the When you try this locally with a checkout from https://github.com/Automattic/themes/ the |
📌 REPRODUCTION RESULTS I was able to reproduce this immediately from the page editor. 📌 FINDINGS/SCREENSHOTS/VIDEO 📌 ACTIONS @pkevan It seems like you were the most recent person to work on Marl. Can you take a look at this issue? |
Another report at 9327982-zen. The user would like to be updated when a fix has been completed. I provided the user with a CSS workaround for now. |
9327145-zen |
9337704-zen |
I am not 100% what's happening. But, reverting #8615 on my sandbox fixes the issue for me. @pkevan, we might want to revert or reconsider the approach? cc-ing also @alaczek / @richtabor for any insight. |
See: #5787 (comment) |
9342814-zen Site is on the Personal plan so couldn't implement a custom CSS workaround. I was able to set a custom background color from Styles settings, but the button is still invisible in the hover state. The user would like to be updated when a permanent fix has been implemented. |
@jorpdesigns CSS isn't required here. Here is a predef:
|
So, as I understand the issue it is related to the fact the styles in the parent theme are defined for the block "core/button".
If I comment out that part in the parent theme, everything starts working. One possible solution is to move the definition of styles to "elements" section, instead of "blocks". And at the moment, we have definition in both sections. |
I created these two draft PRs, testing them now… |
Unfortunately, the solution mentioned above is risky to apply. There are too many (37) dependent themes that will be affected. On the other hand, it is still possible to set custom colors for a button, but we need to use styling for Blocks instead of styling for Elements. Considering, that the parent theme (Blockbase) has styling specifically for the block, this looks pretty logical. Though, the duality in styling elements and blocks is confusing. Especially, for a person who is not familiar with themes. But there is one unsolved issue with styling the hover state. I didn't find how to set colors for it from the Site Editor. If nothing has changed since October 2023, the only way to set it is from CSS. |
Thanks for your review and last comment above. Question: What do you see as the next steps here? From my reading of it, the issue is prioritised as a Blocker but isn't actively being worked on by anyone. To me, that says it's either not/no longer a blocker and should be deprioritiesed, or that we should ensure it's allocated to a team for short-turnaround review. Looping in @oskosk to help us unblock next steps 🙏 |
I tested this today and changing button colors via Site Editor > Styles > Colors > Button resulted in:
marl-buttons.mp4
There were no invisible buttons in my testing on both simple and AT. While this is poor experience I don't think it's a blocker, so I'd be ok with changing status to normal. Given that this is an older hybrid theme and also a child theme, with potential solution affecting all child themes of Blockbase, I don't know if we should attempt a fix. The workaround mentioned above (setting custom button colors via site Editor > Styles > Blocks > Button) works and is available on all paid plans. |
Quick summary
The button text color and background in the Marl theme take on the same color as the page background, making buttons invisible. This issue occurs regardless of the settings in Site Editor > Styles > Color > Button, as the global styles for buttons are not being applied.
Steps to reproduce
Tickets: 9325052-zen, 9323573-zen
Steps to Reproduce
Expected Result
The button should display with the background and text colors as defined in the Site Editor > Styles > Color > Button settings.
Actual Result
The button background and text colors are set to match the page background, rendering the button completely invisible. Changing the settings in Site Editor > Styles > Color > Button has no effect. For customer's using the theme for WooCommerce stores, the Add to Cart button on the shop page is completely invisible.
Site owner impact
More than 60% of the total website/platform users
Severity
Moderate
What other impact(s) does this issue have?
Individual site owner revenue
If a workaround is available, please outline it here.
Users may attempt custom CSS overrides to manually set button styles.
Platform (Simple and/or Atomic)
Simple, Atomic, Self-hosted
The text was updated successfully, but these errors were encountered: