DUPLICATE: Base breakpoint shows inherited values from lower breakpoints (margin, padding, width, max-width, etc.)

Bricks Version: 1.5.1
Browser: Chrome Version 105.0.5195.102 (Official Build) (64-bit)
OS: Windows 11
URL: N/A

I am not sure what version the div was created in, but this also shows for this Div in Bricks v1.5.

I have a DIV with a default bottom margin of 30px. The value shows on the Style tab as “grey” like it is a default value or automatic value. It shows visually in the builder too. On the front-end, the value is not there.

I can’t seem to get rid of it other than at the top of the Style tab, where it shows the ID, on the right side of that field, there is a button to Reset Styles. This is the only way to remove it in the builder, but it removes all the other style on the Div too.

The other Div and newly created Divs do not show this phatom padding.

See attached screenshot.

I will add this here because it looks like the same bug. It was a container made in a previous version that shows the Max Width being 80vw but it isn’t. It is actually 100% on the front end. I have to reset styles at the top to the right of the ID field to make it revert back to showing 100% like it should.

New containers do not do this as far as I have seen.

Do you have any settings in your Theme Styles for your default Element - Div?

No, I don’t have anything there. I have not used that feature yet.

Hi,
Thanks so much for your report!

The placeholder value shows the element’s computed styles, meaning that somewhere in the styles, there is still a 30px (or 3rem) margin-bottom.

Without looking at the code, however, I can’t tell you where, let alone how, this happens.

Depending on what kind of styles you use, please change them to the other kind, clear your browser cache (and if you use a caching plugin: clear the cache too). If all this does not help, please send us access data to help@bricksbuilder.io.

Best regards,
timmse

1 Like

Hey,
Thanks a lot for the login credentials!

The desktop breakpoint show inherited values from lower breakpoints, which causes confusion (also on my end):

Since we already have a work-in-progress task for this, I’ll close this thread.

Best regards,
timmse

1 Like