# SOLVED IN 1.4: Text duplication in unit when adding a variable

**URL:** <https://forum.bricksbuilder.io/t/solved-in-1-4-text-duplication-in-unit-when-adding-a-variable/3104>\
**Category:** Bugs\
**Created:** [May 22, 2022, 3:01pm UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-text-duplication-in-unit-when-adding-a-variable/3104 "2022-05-22T15:01:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joa](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/joa/32/3393_2.png) [@joa](https://forum.bricksbuilder.io/u/joa)\
**Post date:** [May 22, 2022, 3:01pm UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-text-duplication-in-unit-when-adding-a-variable/3104/1 "2022-05-22T15:01:22Z")

</div>

**Bricks Version** : 1.4.RC2  
**Browser** : Firefox dev  
**OS** : Windows  
**URL** : [https://screen.matriarch.ie/app/play/TdMx3DXi#g7hu9CuD](https://screen.matriarch.ie/app/play/TdMx3DXi#g7hu9CuD)

Trying to add a variable (from automatic.css) and having a weird duplication of the text. Was able to replicate it on several elements (screen recording above)

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [May 24, 2022, 10:24am UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-text-duplication-in-unit-when-adding-a-variable/3104/2 "2022-05-24T10:24:01Z")

</div>

Hi Jo,  
Thanks a lot for your report!

We are aware of the issue 🙂 I recommend you not to use var, clamp, min, max, or anything else with brackets in the input fields.

> [@SOLVED IN 1.4: Values with brackets (var, clamp, calc, etc.) in Input fields break styles](https://forum.bricksbuilder.io/t/wip-1-4rc2-values-with-brackets-var-clamp-calc-etc-in-input-fields-break-styles/2993):
>
> Version: 1.4RC2 Hi, It seems entering “(” anywhere in theme style not only breaks backend field, but it also breaks the whole stylesheet and whole website gets unstyled: Note: I just entered “var(–titi)” in the field. Note 2: For existing var() and calc() in theme styling before 1.4RC2 upgrade, no problem, so it seems it’s only newly entered “(” that break everything.

> [@SOLVED IN 1.4: Bricks 1.4 RC2 - CSS Variables Not Working](https://forum.bricksbuilder.io/t/wip-bricks-1-4-rc2-css-variables-not-working/3025):
>
> Bricks Version: 1.4 RC2 Browser: MS Edge Version 101.0.1210.39 (Official build) (64-bit) OS: Windows 10 Home URL: [Contact Us Left - Gerri Wiebe](https://gerriwiebe.pdms.ca/contact-us/) Adding CSS variables to padding fields doesn’t work. If you copy/paste the variable into the padding fields, the CSS variable is added twice like so: padding-top: var(–css-variable)var(–css-variable); If you type the variable name into the padding field, it appears like the value is added without a semicolon, which breaks the stylesheet. Here’s a…

> [@SOLVED IN 1.4: Setting fields using "(" are broken in backend](https://forum.bricksbuilder.io/t/wip-1-4rc2-setting-fields-using-are-broken-in-backend/2982):
>
> Bricks Version: 1.4RC2 When using “(” symbol (like with var and calc) in margins/paddings: width auto is used for unit string and breaks design (you have to scroll to see all section) actual input field disappears and we can’t do anything to get it back [image]

Cheers,  
timmse

---

<div class="post-metadata">

**Author:** ![joa](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/joa/32/3393_2.png) [@joa](https://forum.bricksbuilder.io/u/joa)\
**Post date:** [May 24, 2022, 12:59pm UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-text-duplication-in-unit-when-adding-a-variable/3104/3 "2022-05-24T12:59:58Z")

</div>

Thanks @timmse! I searched the forum but wasn’t searching for the right words 🤷‍♀️

---

<div class="post-metadata">

**Author:** ![ChrisCastillo](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/chriscastillo/32/2203_2.png) [@ChrisCastillo](https://forum.bricksbuilder.io/u/ChrisCastillo)\
**Post date:** [May 24, 2022, 5:05pm UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-text-duplication-in-unit-when-adding-a-variable/3104/4 "2022-05-24T17:05:05Z")

</div>

Hey Stefan, was this fixed in the stable 1.4 release?

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [May 24, 2022, 5:32pm UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-text-duplication-in-unit-when-adding-a-variable/3104/5 "2022-05-24T17:32:36Z")

</div>

Yes @ChrisCastillo . The problem that can occur now is that the values (var, clamp, calc etc) must be re-entered and saved, since they were unfortunately also written incorrectly to the database possibly breaking the styles that follow.

This is for example a result of it: [SOLVED: Broken layout on the front](https://forum.bricksbuilder.io/t/solved-broken-layout-on-the-front/3125)

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [May 27, 2022, 10:34am UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-text-duplication-in-unit-when-adding-a-variable/3104/6 "2022-05-27T10:34:53Z")

</div>

Hi Jo,  
The issue has been fixed with Bricks 1.4.  
The only problem that may occur now is that the broken variables (or functions) have been stored in the database and therefore do not work anymore.

So if you run into a broken layout somewhere, it is most likely due to a broken value in an input field like “var(var(–variable)”. Sorry for the trouble.

Best regards,  
timmse
