SOLVED: background-color transparent rule on links

Bricks Version: 1.6

Hi,

I don’t understand this rule in frontend.css:

image

It is messing with my own CSS and forces me on some ridiculous workarounds…

For instance, defining a default color background for cards is impossible with this:

:where(.card, .image-card) {
  background-color: var(--c-card-bg);
}

So I need to remove :where, but then background color classes conflict with .card, so I need to exclude them:

:is(.card, .image-card):not([class*="bg--"]) {
    background-color: var(--c-card-bg);
}

But then using a semantic class to set the bg color of some cards doesn’t work either because it doesn’t have the priority:

.my-class {
  background-color: red;
}

So I need to use !important and it’s a real pain when working with colors in the builder :frowning:

Hi Yan,
Thanks so much for your report!

The rule is coming from normalizeCSS to remove the gray background on active links in IE 10. As we don’t support IE10, we’ll remove it.

Best regards,
timmse

2 Likes

Hi Yan,
the transparent background color is gone with Bricks 1.6.1, now available as a one-click update within your WordPress Dashboard.

Best regards,
timmse

1 Like