[REF-3135] Radix Primitive components should not ignore provided class_name prop (#3676)

This commit is contained in:
Elijah Ahianyo 2024-07-18 13:26:46 -07:00 committed by GitHub
parent 25aa0cbab1
commit 1bc1978c31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
._render()
.add_props(
**{
"class_name": format.to_title_case(self.tag or ""),
"class_name": f"{format.to_title_case(self.tag or '')} {self.class_name or ''}",
}
)
)