-
Notifications
You must be signed in to change notification settings - Fork 361
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
Hever theme Navigation block: Sub menu background transparent when picking a suggested color #5589
Comments
Additional: found a report related to the opposite scenario: picking custom colors results in a transparent background. No theme specified. No follow up: Automattic/wp-calypso#44839 |
Adding the case from the above closed issue. Chat: #23206333-hc |
I have the same thing happening with the Morden theme and can reproduce it on a test site. |
Adding an additional report of this happening on Learnomattic which uses Rockfield as its theme. When any of the theme colors are chosen (or no color is chosen) submenu backgrounds are transparent. Styling shows correctly in the page editor, but not on the live site. We have used the workaround mentioned above to use a custom color for now. |
I have the same issue as reported under #5271 Ticket: 5176150-zen |
I have been checking this. It looks like the code below is causing this issue:
Here is a screencast: Screen.Capture.on.2022-05-23.at.19-42-39.mp4It looks like it affects |
It seems to me we can only use CSS here on a case-by-case basis depending on what theme colour is chosen. I've been trying to figure out a way to apply an overall theme fix with CSS but it looks to me like specific CSS classes are not being added to the submenu element when a theme colour is selected. As @Gustavo-Hilario mentioned, removing this declaration fixes the issue in the browser:
as it falls back to using one of the color variables such as If someone comes up with an overall theme fix using CSS, please let me know! I've been trying to troubleshoot this for awhile. |
I tested this issue and found the issue is present in the base Varia theme. I think the problem is related to the specificity of the CSS styles. In the Varia theme, the style block However, in other themes like Seedlet, the I am not sure why the default style does not override the secondary style in this case. 🤔 |
I was taking a look at this, and I know this isn't the best solution, but I did notice looking at the I think many of Quadrat's rules are based on Twenty Twenty-Two's and are supposed to be temporary, so it's possible these !importants were a workaround there too. |
Support References This comment is automatically generated. Please do not edit it.
|
A little further research: It seems that Varia and children use the default Gutenberg rules for the Navigation block, and one potential fix might be to add rules for this. I suspect that the changes made in the thread below may need some refinement for Varia's theme color rules: |
Quick summary
When using the Navigation block with the hever theme, the background of the submenu appear transparent:
Steps to reproduce
What you expected to happen
The sub-menu to have the same background color as the menu
What actually happened
The sub-menu background is transparent
Context
4808600-zen
Simple, Atomic or both?
Simple, Atomic
Theme-specific issue?
Was only able to replicate with Hever
Browser, operating system and other notes
Firefox 97 on macOS (Catalina 11.6)
Reproducibility
Consistent
Severity
Some (< 50%)
Available workarounds?
Yes, easy to implement
Workaround details
Select a custom background color instead:
The text was updated successfully, but these errors were encountered: