Skip to content

Commit

Permalink
refactor(primitives): 💄 remove py from badge button & tag
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Jun 16, 2022
1 parent 1d2b508 commit 58bc940
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/theme/defaultTheme/badge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ export const badge = {
base: "inline-flex items-center justify-center relative whitespace-nowrap align-middle transition-all",
size: {
sm: {
base: "min-h-4 min-w-4 w-auto px-1.5 py-px border rounded-2xl text-xs font-medium",
base: "min-h-4 min-w-4 w-auto px-1.5 border rounded-2xl text-xs font-medium",
prefix: "text-[8px] mr-1",
},
md: {
base: "min-h-5 min-w-5 w-auto px-1.5 py-[3px] border rounded-2xl text-xs font-medium",
base: "min-h-5 min-w-5 w-auto px-1.5 border rounded-2xl text-xs font-medium",
prefix: "text-[10px] mr-1",
},
lg: {
base: "min-h-6 min-w-6 w-auto px-2 py-[4.5px] border rounded-2xl text-cxs font-medium",
base: "min-h-6 min-w-6 w-auto px-2 border rounded-2xl text-cxs font-medium",
prefix: "text-[12px] mr-1",
},
},
Expand Down
8 changes: 4 additions & 4 deletions src/theme/defaultTheme/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const button = {
},
size: {
sm: {
base: "min-h-[26px] min-w-[26px] w-auto py-[5.5px] px-2 border rounded-lg text-cxs font-medium",
base: "min-h-[26px] min-w-[26px] w-auto px-2 border rounded-lg text-cxs font-medium",
prefix: "text-[12px] mr-1.5",
suffix: "text-[12px] ml-1.5",
iconOnly: {
Expand All @@ -17,7 +17,7 @@ export const button = {
},
},
md: {
base: "min-h-[30px] min-w-[30px] w-auto py-[7px] px-2.5 border rounded-lg text-sm font-medium",
base: "min-h-[30px] min-w-[30px] w-auto px-2.5 border rounded-lg text-sm font-medium",
prefix: "text-[12px] mr-1.5",
suffix: "text-[12px] ml-1.5",
iconOnly: {
Expand All @@ -27,7 +27,7 @@ export const button = {
},
},
lg: {
base: "min-h-9 min-w-9 w-auto py-2.5 px-3 border rounded-[10px] text-sm font-medium",
base: "min-h-9 min-w-9 w-auto px-3 border rounded-[10px] text-sm font-medium",
prefix: "text-[12px] mr-1.5",
suffix: "text-[12px] ml-1.5",
iconOnly: {
Expand All @@ -37,7 +37,7 @@ export const button = {
},
},
xl: {
base: "min-h-11 min-w-11 w-auto py-[13px] px-4 border rounded-xl text-base font-medium",
base: "min-h-11 min-w-11 w-auto px-4 border rounded-xl text-base font-medium",
prefix: "text-[16px] mr-2",
suffix: "text-[16px] ml-2",
iconOnly: {
Expand Down
6 changes: 3 additions & 3 deletions src/theme/defaultTheme/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ export const tag = {
size: {
sm: {
default:
"min-h-5 min-w-5 w-auto px-1.5 py-[2.5px] border rounded-[5px] text-cxs font-medium",
"min-h-5 min-w-5 w-auto px-1.5 border rounded-[5px] text-cxs font-medium",
prefix: "text-[12px] mr-1",
suffix: "text-[12px] ml-1",
},
md: {
default:
"min-h-6 min-w-6 w-auto px-2 py-[4.5px] border rounded-md text-cxs font-medium",
"min-h-6 min-w-6 w-auto px-2 border rounded-md text-cxs font-medium",
prefix: "text-[12px] mr-1",
suffix: "text-[12px] ml-1",
},
lg: {
default:
"min-h-7 min-w-7 w-auto px-2 py-1.5 border rounded-md text-sm font-medium",
"min-h-7 min-w-7 w-auto px-2 border rounded-md text-sm font-medium",
prefix: "text-[12px] mr-1",
suffix: "text-[12px] ml-1",
},
Expand Down

0 comments on commit 58bc940

Please sign in to comment.