SOLVED: Gradient/Overlay overlays Elements & builder display bug

Bricks Version: 1.5.2
Browser: Chrome 105 [newest]
OS: Windows
URL: (a link to a page that illustrates the issue would be really helpful)

Really don’t know if it is a bug or if im just stupid.
After updating my bricks to 1.5.2 an area on my site was changed.
I got a background with a black gradient overlay.
Previously all elements on that section were the defined color [white] but now it seems like the gradient overlays my (new) elements as well and i can’t work around it.

But the strangest thing about this is… All my old elements are displayed different in the builder/preview and the site itself:

I reload the builder - everything seems fine and bright;
When i then hover over the elements or enter the preview - they turn dark;
& when i hold right-click in the builder or preview on any of those [new&old] elements - they get the actual defined color as long as im holding right-click.

[Builder] After Reload:

[Builder] After hovering over “My Studio” , “Audiodesign” & “My studio is…” :

[Preview] After entering Preview:

[Builder] While holding right-click on “My Studio” :

[The actual site]

“studio is an innovative workspace.” should be white

1 Like

Hi there, I’m getting this bug too on 1.5.3.

Container has background image, set to overlay on background. It’s applying that background/overlay to the buttons, headings, text that is nested underneath that container too.

If i set the headings/text etc to “Apply to Text” the rendered version on the editor looks correct, but when i save and hard refresh the website, the bug is still there.

Confirmed. Happened on my site on every page after updating to 1.5.3.
Oddly enough: rolling back did not fix the problem.

Can you share the URL? Perhaps its a z-index issue?

I’m having an issue with the overlay not even rendering:

backend:


frontend:

@thomas I would usually just code this in, but figured I would try with the builder first.

Set relative position on the parent. 1.5.3 converter should do this but maybe not now you’ve upgraded.

2 Likes

I’m also experiencing this issue on our header banners and hero sections. When trying to apply a gradient overlay to the background image, it also covers the title text and other elements. I had to manually set a z-index for the title text to prevent it from happening.

1 Like

does changing z-index actually help? For me it only solves it in the editor. On front-end the other elements stay behind the overlay though.

Did you fix the relative position too?

edit: solved, see below.


I have. Didn’t help.

my URL, just in case is https://connections2.adrianmarmy.ch/ see “our courses” slider. The text is barely readable anymore.

Yeah, it works for me on front-end too.

I just saw this screencast in the Facebook group:

1 Like

Edit: Now it’s working on my slider too. I had to nest all elements in one main div so I could z-index them all together. Don’t really know why z-indexing the single elements didn’t help but well… don’t really care anymore since it’s working now. :smile:


in fact it is working for me in other places too. Just not on my slider. Probably it’s because it’s nested differently…

Thanks for the screencast though! I had been looking for the same topic in the FB group but did not find it.

1 Like

Hi guys,
Thanks so much for your report!

The inner elements need a relative position too since the overlay is absolutely positioned. Basically & technically, it’s not a bug. However, since we get tons of reports on this topic, in the next version we will introduce a helper class for the overlays that applies position: relative to all elements.

Best regards,
timmse

4 Likes

Has this been implemented sorry? I tried one earlier on Bricks 1.5.6 and it was still overlapping the text - I overcame it with custom css and using z-index:0 on the text bits.

It was and works for me: neither the container nor the elements inside have any setting. The .has-overlay class makes sure that all inner elements are set to position:relative so that they are above the overlay.