SOLVED: Image overlay on hover does not work due to incorrect order of selectors

Browser: Firefox 147.0b3 (also Edge and Brave)
OS: Windows
URL: Link to a page that illustrates this issue

I have an archive template with a featured image. I have added an Image Overlay to it as in first screenshot. I have added a different colour overlay for the hover state (2nd screenshot) but nothing happens on hover on the frontend.

The CSS looks like this:

.brxe-valhyj .brxe-lrzmgi.brxe-image.overlay::before {
  background-color: var(--bdn-success-40)
}
.brxe-valhyj .brxe-lrzmgi.brxe-image.overlay::before:hover {
  background-color: var(--bricks-color-34bd59)
}

The problem is that the second rule should have the :hover pseudo class before the ::before pseudo element, like this:

.brxe-valhyj .brxe-lrzmgi.brxe-image.overlay:hover::before {
  background-color: var(--bricks-color-34bd59)
}

1 Like

Hi,
Thanks so much for your report!

I reproduced the issue and added it to our bug tracker.
We’ll update this thread once it’s fixed.

Best regards,
timmse

1 Like

Hi!

Any update in this issue? Best regards,

David

Hi David,
Welcome to the forum!

No, unfortunately not yet. We’ll update this thread once it’s fixed.

1 Like

We’ve addressed this in Bricks 2.3.5, now available as a one-click update in your WordPress Dashboard.

Please read the changelog entry before updating, and let us know if you experience any issues.