Skip to content

Remove stale CSS classes to prevent cascade breaking styling - #152

Merged
ll-nick merged 1 commit into
mainfrom
fix-duplicate-classes
Sep 17, 2026
Merged

ll-nick merged 1 commit into
mainfrom
fix-duplicate-classes

Conversation

@ll-nick

@ll-nick ll-nick commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

This fixes a bug I managed to get in the following way: I ran colorize, then duplicated an element and changed it's fill. Running colorize again now added another styling class leading to both the old and the new color. Which one is then chosen depends on the order/the cascade which actually chose the previous color again so running colorize actually broke the styling.
This PR contributes a fix: If the property that's meant to be styled already exists, delete it first, then set the new class.

@ll-nick ll-nick self-assigned this Sep 17, 2026
@ll-nick ll-nick added the bug Something isn't working label Sep 17, 2026
@ll-nick
ll-nick merged commit a5ef3e9 into main Sep 17, 2026
5 checks passed
@ll-nick
ll-nick deleted the fix-duplicate-classes branch September 17, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant