# SOLVED: Closing the custom CSS popup breaks %root%

**URL:** <https://forum.bricksbuilder.io/t/solved-closing-the-custom-css-popup-breaks-root/34229>\
**Category:** Bugs\
**Tags:** v2-0\
**Created:** [July 25, 2025, 10:07am UTC](https://forum.bricksbuilder.io/t/solved-closing-the-custom-css-popup-breaks-root/34229 "2025-07-25T10:07:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HOSEIN](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/hosein/32/25907_2.png) [@HOSEIN](https://forum.bricksbuilder.io/u/HOSEIN)\
**Post date:** [July 25, 2025, 10:07am UTC](https://forum.bricksbuilder.io/t/solved-closing-the-custom-css-popup-breaks-root/34229/1 "2025-07-25T10:07:59Z")

</div>

**Browser** : Chrome 138.0.7204.169  
**OS** : Windows

Hi,

After closing the custom css popup, %root% changes to the ID.

![Custom css](https://forum.bricksbuilder.io/uploads/default/original/3X/3/0/308b2ea7e47a008ef1ff58f61fe2559b958abdf7.gif)

---

<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:** [July 25, 2025, 10:14am UTC](https://forum.bricksbuilder.io/t/solved-closing-the-custom-css-popup-breaks-root/34229/2 "2025-07-25T10:14:28Z")

</div>

Hi Hosein,  
Thanks so much for your report!

Nothing breaks, since %root% is a placeholder for the ID (or class). So it’s literally the same, and as you can see on the canvas: it still applies.

Nevertheless, it shouldn’t change causing confusion ✌

Best regards,  
timmse

---

<div class="post-metadata">

**Author:** ![charaf](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/charaf/32/34412_2.png) [@charaf](https://forum.bricksbuilder.io/u/charaf)\
**Post date:** [April 22, 2026, 3:46pm UTC](https://forum.bricksbuilder.io/t/solved-closing-the-custom-css-popup-breaks-root/34229/3 "2026-04-22T15:46:57Z")

</div>

Hi @HOSEIN, this issue should have been solved in v2.3.2

---

<div class="post-metadata">

**Author:** ![MarekKmiecik](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/m/4491bb/32.png) [@MarekKmiecik](https://forum.bricksbuilder.io/u/MarekKmiecik)\
**Post date:** [April 27, 2026, 11:57am UTC](https://forum.bricksbuilder.io/t/solved-closing-the-custom-css-popup-breaks-root/34229/4 "2026-04-27T11:57:19Z")

</div>

This problem still occurs into v.2.3.3.  
I have two CSS code: 1) direct into element, 2) into class .kierunki-szukaj-checkbox  
When I switch editor view to media breakpoint (no matter: tablet, mobile), and then back to desktop view, and click into Custom CSS field, in this moment editor change %root% element to the element ID or class name (if I edit .kierunki-szukaj-checkbox class).

 ![image](https://forum.bricksbuilder.io/uploads/default/original/3X/f/5/f5cf5e61d4df226bf32743ed611abb4387e4c2f7.png)

 ![image](https://forum.bricksbuilder.io/uploads/default/original/3X/d/e/de9276b8c15036d9bf76721e2f5c8e04cae293d1.png)

---

<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:** [April 27, 2026, 12:33pm UTC](https://forum.bricksbuilder.io/t/solved-closing-the-custom-css-popup-breaks-root/34229/5 "2026-04-27T12:33:56Z")

</div>

Yep, I was able to find the pattern that causes it. We’ll update this thread, once it’s fixed (again):

> [@WIP: Why does %root% randomly change into the class name sometimes?](https://forum.bricksbuilder.io/t/wip-why-does-root-randomly-change-into-the-class-name-sometimes/39024):
>
> Sometimes when editing Custom CSS %root% randomly change into the class name. I am not a fan of this because it does it inconsistently like it has a mind of it’s own. Can I make it never change %root% randomly into the class name? I’ve had this issue the whole 2 years or so I’ve been using Bricks and it always bothers me because it seems to have no logic to it. If it’s a feature, not a bug, how to get it to behave consistently? Am I accidentally doing something that is causing it to happen? I …
