Skip to content

Commit 145efc9

Browse files
committed
feat(Button): Decrease default icon size
1 parent 1a2974e commit 145efc9

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/components/layouts/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const Side = ({ children, actions = [], className }: LayoutSideProps) => {
5858
className={cn(
5959
vstack({}),
6060
"absolute top-3 -right-5 rounded-2xl border border-stroke-gentle bg-background-page",
61-
"[&_:where(button,a)]:size-10 [&_:where(button,a)]:rounded-2xl"
61+
"[&_:where(button,a)]:size-10 [&_:where(button,a)]:rounded-2xl [&_:where(button,a)_svg]:size-5"
6262
)}
6363
>
6464
<IconButton

src/components/ui/button/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const Button = ({
9999
<Icon
100100
color={iconColor}
101101
icon={icon}
102-
size={size === "sm" ? "sm" : "md"}
102+
size={size === "sm" ? "xs" : "sm"}
103103
className="mr-2"
104104
/>
105105
) : null}

src/components/ui/icon-button/icon-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const IconButton = ({
4343
hideTitle,
4444
titleSide,
4545
iconColor = "current",
46-
iconSize = size,
46+
iconSize = size === "sm" ? "xs" : "sm",
4747
...delegated
4848
}: IconButtonProps) => (
4949
<TitleTooltip title={hideTitle ? undefined : title} side={titleSide} asChild>

src/features/time-table/time-table-header.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ export const TimeTableHeader = ({
125125
}
126126
titleSide="right"
127127
iconColor="muted"
128-
iconSize="sm"
129128
onClick={() => editableDatesData.actions.toggle(date)}
130129
/>
131130
<div className="flex-1" />

0 commit comments

Comments
 (0)