SOLVED: Root keyword in custom CSS selector gets substituted only once

Browser: irrelevant
OS: irrelevant
URL: see explanation and screenshot attached
Video: see explanation and screenshot attached

Hey guys,

I just noticed a small issue that I’d consider being a bug. When I use the root keyword in the custom CSS section of an element multiple times in a single selector it gets substituted only once.

Example:

There is a block element with a custom class of news-item__column--content attached to it. With this custom class selected I add the following CSS to the element’s custom CSS section:

.news-item--featured root,
.news-item:not(.news-item--featured):nth-child(even) root {
  padding-right: var(--space-xs);
}

The generated output looks like the following:

.news-item--featured root, .news-item:not(.news-item--featured):nth-child(even) .news-item__column--content {
  padding-right: var(--space-xs);
}

As you can see the first occurence of the root keyword stays as is and only the second (and last) occurence gets substituted.

1 Like

Hi Andre,
Thanks so much for your report!

I was able to reproduce the issue and added it to our bug tracker.

Best regards,
timmse

2 Likes

Hi Andre :smiley: ,
We’ve fixed this issue in Bricks 1.9.1/1.9.1.1, now available as a one-click update in your WordPress Dashboard.

Please let us know if you are still experiencing issues.

Best regards,
timmse

2 Likes

Hey Stefan,

oh I will let you know… trust me, I will… :sweat_smile:

Best,

André

1 Like