Skip to content

Commit 2ffba03

Browse files
committed
Apply code formatting
1 parent a1829ea commit 2ffba03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

violetear/presets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def _generate_states(self):
541541
for state in self.states:
542542
# We create a class name like "hover:bg-red"
543543
# In CSS this must be escaped as ".hover\:bg-red"
544-
variant_class = f"{state}\:{original_class}"
544+
variant_class = f"{state}\\:{original_class}"
545545

546546
# Create a new Style manually to handle the escaped class name
547547
# 1. The selector matches the class (e.g. .hover:bg-red)

0 commit comments

Comments
 (0)