Bricks Version: 1.5.2 Browser: Any OS: macOS URL: localhost
In my theme, I have defined 3rem for the left and right padding on the section element. When I add a section to the canvas and then look at its padding values, 30 is shown for the left and right padding. So Bricks appears to have converted rem to px based upon 1 rem = 10px (I have 62.5% set as the html font size).
Surely Bricks should not convert anything and show what we have entered in the theme. Without units as well, the number means nothing. It could be 30rem or 30px. The units need to come back.
Thanks, you’re right, the 3 rem is being used in the front end so it is a backend visual bug. My other concern is the lack of units being shown, without going into the theme you don’t know what the value’s unit is. I know there is a topic on dropping of units but that is more to do with entering units so I’m not going to add this issue there.
Do you mean greyed-out visual indicators? For example, you set 3 REM in theme styles or a higher breakpoint?
If so this is not a bug. In 1.5.1 or 1.5.2 (I don’t think it is in the changelog so not sure when exactly), but it pulls through the computed styles from the dev console:
Michael already said it right: we get the placeholder values from the computed styles of the browser, which “converts” your rem, em, or whatever into calculated pixels. Accordingly, the displayed values are correct (except for this bug: WIP: Incorrect padding display in lower breakpoints).
Due to the custom breakpoints and the soon-to-be-released feature “set default unit”, this step was necessary. Of course, we will see how we can improve this continuously.
I understand but it is confusing especially without any unit display. It might be useful to put a note somewhere in the documentation about this so other users aren’t confused by the different value display.