From 1bb4b206c68a0d8dc817b0a0f6c559fe9ea51664 Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Fri, 13 Feb 2026 11:00:16 +0100 Subject: [PATCH] fix: default icon size to 16px in createIcon wrapper and fix download button alignment (#27924) * fix: resolve insights page UI regressions for plus button size and download alignment Co-Authored-By: eunjae@cal.com * fix: default icon size to 16px in createIcon wrapper Co-Authored-By: eunjae@cal.com --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../modules/insights/components/filters/Download/Download.tsx | 2 +- packages/coss-ui/src/icons.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/modules/insights/components/filters/Download/Download.tsx b/apps/web/modules/insights/components/filters/Download/Download.tsx index b6db1b490c..f8176c80cf 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")} diff --git a/packages/coss-ui/src/icons.tsx b/packages/coss-ui/src/icons.tsx index de095cc235..95332e25c1 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 ; }; }