Skip to content

Commit bb7bed6

Browse files
style: Adjust Tag Border Radius (#106)
1 parent 49845bb commit bb7bed6

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.changeset/many-zebras-crash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@zenml-io/react-component-library": patch
3+
---
4+
5+
adjust border radius of tags based on tag size

src/components/Tag/Tag.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { cn } from "../../utilities";
44

55
export const tagVariants = cva("shrink-0 flex items-center justify-center gap-0.5 py-0.5 px-1", {
66
variants: {
7-
rounded: { false: "rounded-md", true: "rounded-rounded" },
7+
rounded: { false: "", true: "rounded-rounded" },
88
size: { sm: "h-6 text-text-sm", xs: "h-5 text-text-xs" },
99
emphasis: {
1010
bold: "",
@@ -26,6 +26,16 @@ export const tagVariants = cva("shrink-0 flex items-center justify-center gap-0.
2626
}
2727
},
2828
compoundVariants: [
29+
{
30+
rounded: false,
31+
size: "sm",
32+
class: "rounded-md"
33+
},
34+
{
35+
rounded: false,
36+
size: "xs",
37+
class: "rounded-sm"
38+
},
2939
// gray
3040
{
3141
emphasis: "bold",

0 commit comments

Comments
 (0)