Open quantumleap33 opened 1 week ago
This is somewhat intended, although likely bad UX. It exists in the current Global Styles system as well.
The reason it can't be deleted is that nothing exists to delete.
We should explore allowing the deletion of the item in state even if there's nothing to delete.
Description
When creating a custom
AT-RULE
without overriding any of the local style values, the Delete at-rule option is greyed out.Steps to reproduce
Mobile
preset and change the rule to@media (max-width:400px)
.AT-RULES
options and click the three vertical dots next to the newly created rule.Expected behavior
The
Delete at-rule
option should be available.Actual behavior
The
Delete at-rule
option is greyed out until a default value has been overridden.This also happens with global styles.