@charaf why is Bricks still using Physical Properties instead of Logical Properties?
top should be => inset-block-start! Then it would overwrite the ACSS Styling because its chained with the #brx-header ID - but only when the Stlying is not inside the Layer.
Why is this sticky Styling inside the Bricks Layer? This isn’t about default styling that needs to be overridden in any way, since that’s set in the Bricks UI, right? That shouldn’t be in the layer.
I think a data attribute like data-header=sticky would make the most sense here. A class with a prefix is also a good idea.
Or with more context, like .sticky-header.
Sticky is too general. Even without ACSS or Core or whatever, a user might come up with the idea of naming a class .sticky, and then you’d have the same problems. With or without the CSS framework, it’s problematic.
I’m responding to your reply on the other thread here since it’s related to the .sticky issue.
“Sticky” header is a default Bricks style that is only applied when the user enables “Sticky” header. Since it’s not a user-generated style, it gets added to the cascade layer.
Yup, agreed, we’ll rename this class in our next release. I have set this task as “WIP” accordingly.
We’ve fixed this issue in Bricks 2.0.2 now available as a one-click update in your WordPress Dashboard.
Please take your time to read the changelog entry before updating: Bricks 2.0.2 Changelog – Bricks, and let us know if you continue to experience issues.