Unset option in inline styles resets ":root" selector USS

A minor issue I ran into. For all styles in the builder, you can set a style in the USS file, and then override it using an inline style in the builder editor. If you set an inline style and want to reset to what is in the USS file, you right click and select “Unset”.

However with the :root selector, the styles set in the USS file always appear as inline styles in the editor. If you “Unset” the inline styles (because you thought you accidentally overrode the USS styles) it deletes the style in the USS file (setting it blank).

I assume this isn’t intended since other styles don’t work like this, and it’s just a quirk in how the builder is handling the :root selector? If this is intentional, is there something that can be added to safeguard this a bit more?

Thanks!

Hi! yes it looks like an issue with unset, can you fill out a bug please? we’ll look at it as sson as possible

Awesome thanks. I created ticket 1408630.

I’ve never actually filed a bug before so I did it through the editor. Hope that’s the correct way.

yes it is!