Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cuddly-books-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@compai/css-gui': patch
---

Ensure class attrs don't drop styling
5 changes: 5 additions & 0 deletions packages/gui/src/components/html/Renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ const cleanAttributes = (attributes: Record<string, string>) => {
newAttributes.href = '#'
}

if (newAttributes.class) {
newAttributes.className = newAttributes.class
delete newAttributes.class
}

return newAttributes
}

Expand Down