Skip to content

Commit 990cd9f

Browse files
committed
update badge
1 parent e508a5a commit 990cd9f

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

demo/assets/css/globals.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,7 @@
10991099
0px -8px 8px 0px light-dark(rgba(28, 32, 36, 0.02), rgba(0, 0, 0, 0)),
11001100
0px -2px 6px 0px light-dark(rgba(28, 32, 36, 0.02), rgba(0, 0, 0, 0));
11011101
/* Radius */
1102+
--radius-ui-xss: calc(var(--radius) - 0.25rem);
11021103
--radius-ui-xs: calc(var(--radius) - 0.125rem);
11031104
--radius-ui-sm: var(--radius);
11041105
--radius-ui-md: calc(var(--radius) + 0.125rem);

reflex_ui/components/base/badge.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656

5757
BADGE_VARIANTS = {
5858
"size": {
59-
"xs": "px-1.5 py-0.5 h-4 rounded-ui-xs text-[11px] [&_svg]:size-3",
60-
"sm": "px-1.5 py-0.5 h-5 rounded-ui-sm text-xs [&_svg]:size-3.5",
61-
"md": "px-2 py-0.5 h-6 rounded-ui-md text-sm [&_svg]:size-4",
59+
"xs": "px-1.5 py-0.5 h-4 rounded-ui-xss text-[11px] [&_svg]:size-3",
60+
"sm": "px-1.5 py-0.5 h-5 rounded-ui-xs text-xs [&_svg]:size-3.5",
61+
"md": "px-2 py-0.5 h-6 rounded-ui-sm text-sm [&_svg]:size-4",
6262
}
6363
}
6464

reflex_ui/components/base/badge.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ DEFAULT_BASE_CLASSES = "inline-flex items-center font-medium [&_svg]:pointer-eve
5858
LIGHT_COLORS = {"sky", "mint", "lime", "yellow", "amber", "secondary"}
5959
BADGE_VARIANTS = {
6060
"size": {
61-
"xs": "px-1.5 py-0.5 h-4 rounded-ui-xs text-[11px] [&_svg]:size-3",
62-
"sm": "px-1.5 py-0.5 h-5 rounded-ui-sm text-xs [&_svg]:size-3.5",
63-
"md": "px-2 py-0.5 h-6 rounded-ui-md text-sm [&_svg]:size-4",
61+
"xs": "px-1.5 py-0.5 h-4 rounded-ui-xss text-[11px] [&_svg]:size-3",
62+
"sm": "px-1.5 py-0.5 h-5 rounded-ui-xs text-xs [&_svg]:size-3.5",
63+
"md": "px-2 py-0.5 h-6 rounded-ui-sm text-sm [&_svg]:size-4",
6464
}
6565
}
6666

0 commit comments

Comments
 (0)