From 4e5f8e203cd1a2e8fd1e207838a7121f4fb811a1 Mon Sep 17 00:00:00 2001 From: HZ991 Date: Wed, 2 Oct 2024 09:21:30 +1000 Subject: [PATCH 1/6] fix: ui style update --- .../autocomplete/autocomplete.component.tsx | 14 ++------------ .../ui/src/components/footer/footer.stories.tsx | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/packages/ui/src/components/autocomplete/autocomplete.component.tsx b/packages/ui/src/components/autocomplete/autocomplete.component.tsx index 02b7d906c..e6dae3730 100644 --- a/packages/ui/src/components/autocomplete/autocomplete.component.tsx +++ b/packages/ui/src/components/autocomplete/autocomplete.component.tsx @@ -101,16 +101,6 @@ export function Autocomplete({ searchProps.value.length, ]); - const iconSize = useMemo(() => { - switch (size) { - case 'small': - case 'medium': - return 'small'; - default: - return 'medium'; - } - }, [size]); - return (
{props.label && } @@ -120,9 +110,9 @@ export function Autocomplete({
{loadingState ? ( - + ) : ( - + )}
- +

From a0d505a96de10cb0cd4dfbd51c8c12a7084f82d1 Mon Sep 17 00:00:00 2001 From: HZ991 Date: Wed, 2 Oct 2024 14:32:56 +1000 Subject: [PATCH 2/6] fix: for ui components and protoform --- apps/protoform/src/app/credit-cards/address/page.tsx | 2 +- apps/protoform/src/app/layout.tsx | 2 +- .../src/components/content-wrapper/content-wrapper.tsx | 1 + apps/protoform/src/components/cta/cta.tsx | 2 +- .../protoform/src/components/custom-footer/custom-footer.tsx | 2 +- .../protoform/src/components/custom-header/custom-header.tsx | 2 +- apps/protoform/src/components/sidebar/sidebar.tsx | 3 ++- .../button-group-button/button-group-button.component.tsx | 5 +++-- .../button-group-button/button-group-button.styles.ts | 3 +++ 9 files changed, 14 insertions(+), 8 deletions(-) diff --git a/apps/protoform/src/app/credit-cards/address/page.tsx b/apps/protoform/src/app/credit-cards/address/page.tsx index 9671115c1..22d156f66 100644 --- a/apps/protoform/src/app/credit-cards/address/page.tsx +++ b/apps/protoform/src/app/credit-cards/address/page.tsx @@ -60,7 +60,7 @@ export default function Address() { -

+
diff --git a/apps/protoform/src/components/content-wrapper/content-wrapper.tsx b/apps/protoform/src/components/content-wrapper/content-wrapper.tsx index b5601fe2e..1180f7003 100644 --- a/apps/protoform/src/components/content-wrapper/content-wrapper.tsx +++ b/apps/protoform/src/components/content-wrapper/content-wrapper.tsx @@ -42,6 +42,7 @@ export function ContentWrapper({ children }: { children: ReactNode }) { +
{children}
diff --git a/apps/protoform/src/components/cta/cta.tsx b/apps/protoform/src/components/cta/cta.tsx index dc05d6d2a..6f9b7b8c2 100644 --- a/apps/protoform/src/components/cta/cta.tsx +++ b/apps/protoform/src/components/cta/cta.tsx @@ -19,7 +19,7 @@ export function Cta({ tertiaryOnClick?: () => void; }) { return ( -
+
diff --git a/apps/protoform/src/components/custom-footer/custom-footer.tsx b/apps/protoform/src/components/custom-footer/custom-footer.tsx index 1479a8ef4..8c8e09bae 100644 --- a/apps/protoform/src/components/custom-footer/custom-footer.tsx +++ b/apps/protoform/src/components/custom-footer/custom-footer.tsx @@ -12,7 +12,7 @@ export function CustomFooter() {
diff --git a/apps/protoform/src/components/custom-header/custom-header.tsx b/apps/protoform/src/components/custom-header/custom-header.tsx index 724e8ec10..53a331e5d 100644 --- a/apps/protoform/src/components/custom-header/custom-header.tsx +++ b/apps/protoform/src/components/custom-header/custom-header.tsx @@ -25,7 +25,7 @@ export function CustomHeader() { leftIcon={isMobile ? 'arrow' : undefined} leftOnClick={() => router.back()} logoLink="/" - className="z-[100] m-auto max-w-[1922px] md:sticky md:top-0" + className="z-[100] m-auto max-w-[1922px] md:fixed md:top-0 w-full" > )}
+ <> <>
+