Hi, I need your help. I need this for a Custom Component but I noticed that the same behavior also happens with standard components, such as the Container.
When you set a size for the border (in my case the bottom border) but leave the color set to “No color” it happens that in the editor you see a gray border (see screenshot). I need to overwrite that style in the editor and make it actually transparent if no color is set. How can I do it?
I need this for a Custom Component, so I ask you if it is possible to overwrite that style by inserting CSS, JS or other code?
Yes! You can use the Advanced → CSS Classes field to apply custom styles.
For example, with the Container component (which has a bit more internal structure), you can use this class to specifically target the border and make it transparent:
[&_div:last-child]:border-b-transparent
This ensures the bottom border of the last inner div is fully transparent.