I was searching for a problem I’m having when I found this post
It suggests this issue has been solved, however, I’m having the same problem now. Has this been regressed? I’m having the problem now in release 2.1.4 I’m looking at the frontend-layer.min.css?ver=1762944543 and it has [class*=brxe-] {max-width: 100%;} which is breaking my site.
The 100% max-width rule was never removed, it was just placed inside of the layer in the CSS so can be more easily overridden with less specific selectors.
For example, this is now possible..
p {
max-width: 70ch;
}
which wasn’t before. It was always overridable with classes, but some people wanted it to have zero specificity so anything can override it.
"which is breaking my site"
I’m not part of the Bricks team, but just sharing the info. But if something is breaking on your site, I’d recommend pointing out which part as it may be something else causing it. (as mentioned this max-width has always been there for all Bricks elements). It’s not obvious from the URL shared which part is wrong.
edit - on a second look, i notice you’re using max-inline-size to set the max width for somethings, this may be what you’re referring to. in this case you’d also need to override the max-width otherwise they’ll both apply to the same element (max-inline-size and max-width are the same thing unless writing vertically)
Hi, thanks for this. Basically, if I remove the [class*=brxe-] {max-width: 100%;} my site works. I have a div with a grid in it, I change the width of the last column but nothing happens, when I turn off the above rule, it works.
It’s the Featured Speakers above the lorem text. The last element has a absolutely positioned box to act as a dummy border. The right-hand border is missing unless you turn off the rule.
The post I mentioned seemed to suggest exactly this problem and I thought it was ‘fixed’. Maybe I misunderstood. It has an inline-size and a block-size calcs to extend it’s height and width to behave like padding or gap.
As the 100% max-width is placed in a layer, I would have thought my css would have overridden it.
max-width doesn’t work. It has to have width as it’s an empty div. Obviously, width has the same problem as inline-size does. I’ll have to keep playing.