Skip to content

Scheduling infrastructure for absolutely everyone.

fix: default icon size to 16px in createIcon wrapper and fix download button alignment (#27924)

Eunjae Lee1bb4b206c68a
diff --git a/apps/web/modules/insights/components/filters/Download/Download.tsx b/apps/web/modules/insights/components/filters/Download/Download.tsx
index b6db1b490c2..f8176c80cf5 100644
--- a/apps/web/modules/insights/components/filters/Download/Download.tsx
+++ b/apps/web/modules/insights/components/filters/Download/Download.tsx
@@ -99,7 +99,7 @@ const Download = () => {
EndIcon="file-down"
color="secondary"
loading={isDownloading}
- className="h-full self-end sm:self-baseline">
+ className="h-full">
{t("download")}
</Button>
</DropdownMenuTrigger>
diff --git a/packages/coss-ui/src/icons.tsx b/packages/coss-ui/src/icons.tsx
index de095cc2356..95332e25c1a 100644
--- a/packages/coss-ui/src/icons.tsx
+++ b/packages/coss-ui/src/icons.tsx
@@ -163,7 +163,7 @@ export interface IconProps {
}
function createIcon(Icon: LucideIcon, testId: string) {
- return function WrappedIcon({ size, className, onClick }: IconProps) {
+ return function WrappedIcon({ size = 16, className, onClick }: IconProps) {
return <Icon size={size} className={className} onClick={onClick} data-testid={testId} />;
};
}