SOLVED: Custom variables don't work properly in builder on 1.5.1 RC

Bricks Version: 1.5.1 RC
Browser: Firefox Dev
OS: Windows
URL: local page

Hello,

I upgraded to 1.5.1 RC version on local installation (demo site) and it looks like custom variables does not work in the builder, but they show perfectly fine on frontend.

For example in the 1.5 version, I had class “.section-project” and I had custom variable for padding-top, just like you can see on the picture below:

When I updated to 1.5.1 RC, it looks like one the image below. Now, you can see that the padding was not applied and I don’t have the class selected.

When I selected the class, you can see that the padding-top was applied and now it shows correctly. But to fix everything, I would need to click every element/class :slight_smile:

I hope it helps and if I can try anything else, let me know :slight_smile:

3 Likes

Hi Matej,
Thanks so much for your report!

I was able to reproduce the issue and added it to our bug tracker.

Best regards,
timmse

2 Likes

Just an additional note that this affects more than variables. Including alternate units. Like em, rem, etc.

All the padding/margin around my development site has switched to px. The number values have remained. The temp fix is the similar, clicking on the element padding/margin.

Yep, we’ve also noticed this with a variety of different units (especially rem and em).

Hey guys,
Thanks so much for the additional information!

The problem arises because, before 1.5.1, we separated value and unit. Now it is only a single string, and there was still a bug in the logic for merging (obviously). It’s already fixed in my current dev version.

Best regards,
timmse

3 Likes

Hi,
after updating to stable version 1.5.1 the problem remained. Is there a solution?

Thanks for your support!

1 Like

Hi Stefan,

Hopefully not duplicating or repeating, but on a fresh install of 1.5.1 RC adding a clamp calc does not seem to work in padding (but seems ok in margin strangely) is this seperate to the above and would you like me to create a new ticket or due to the above?

Many thanks

Mick

Hi @lapocerchiai,
Are you updating from 1.5 or from 1.5.1 RC?

@Michael I cannot reproduce the padding issue on a fresh install of 1.5.1 stable: please re-check using the stable version :slight_smile:

Hi @timmse, I have update from 1.5 not from RC.
In backend I see the page perfectly, but with values on margin and padding without units (rem, px, ecc)
In the frontend margin or padding are not present.

1 Like

Hey @lapocerchiai ,
Thanks so much for the quick reply :pray:

We have withdrawn the auto-update, found the bug (hopefully) and would be happy if you could test again. You can download the updated version from this link: Account – Bricks

2 Likes

Perfect !!
I just removed the theme and reinstalled and it was all fixed!
what an impressive speed!
Thanks @timmse and to all team for your support !

1 Like

Sorry for the trouble… we tested this countless times, and it worked. The fix was a one-liner :crazy_face:

We just adjusted the changelog and keep the manual download for now - the one-click update will follow later.

Thanks again and best regards,
timmse

2 Likes

So is it “safe” to update now?

Is it in the dashboard officially? (I didn’t see it last I checked, it was only available via a direct link)

1 Like

Well, safe is relative. You should always make a backup beforehand since there will certainly be bugs in the new version that could cause you problems @crsmoore .

Currently, it’s available as a manual download. Manual download are only reachable by using the link. We’ll make it “public” and “one-click” ready again soon.

2 Likes