I can confirm this as a bug. The .bricks-overlay-wrapper is missing when using a class.
Probably there is a much better approach when using classes to add an overlay to your images using pseudo-elements.
Add a container with a background image (on the ID, so you can use your overlay class on different elements).
Add a class “.overlay” to your container.
Add a pseudo Element of “::before” to .overlay.
Set the following on the pseudo element (you can set the styles in the builder, there is no need for custom CSS):
Voila! Now you can use .overlay on every container element
Unfortunately, I just realized that there is a problem using custom classes with pseudo elements on other elements (like the image element, for example). So in the meantime, you can use the .overlay class only on a container if you’ve added it to a container
Thanks for reporting the issue, could you elaborate more on the issue?
I am able to set Overlay on the background image when using CSS class.
Maybe a simple video recording will help us to identify the problem.