diff --git a/.changeset/cyan-owls-rest.md b/.changeset/cyan-owls-rest.md new file mode 100644 index 000000000..697344e07 --- /dev/null +++ b/.changeset/cyan-owls-rest.md @@ -0,0 +1,5 @@ +--- +'@westpac/ui': minor +--- + +Updated the appearance and svg of progress indicator component; updated visual bugs in header and badge; diff --git a/apps/protoform/src/components/cta/cta.tsx b/apps/protoform/src/components/cta/cta.tsx index 6f9b7b8c2..3dbb813fb 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/sidebar/sidebar.tsx b/apps/protoform/src/components/sidebar/sidebar.tsx index c374edbc1..17b35b387 100644 --- a/apps/protoform/src/components/sidebar/sidebar.tsx +++ b/apps/protoform/src/components/sidebar/sidebar.tsx @@ -84,7 +84,7 @@ export function Sidebar({ children }: { children?: ReactNode }) { <>
diff --git a/apps/site/src/app/design-system/components/sidebar/sidebar.component.tsx b/apps/site/src/app/design-system/components/sidebar/sidebar.component.tsx index 3f90020f6..d97cd269b 100644 --- a/apps/site/src/app/design-system/components/sidebar/sidebar.component.tsx +++ b/apps/site/src/app/design-system/components/sidebar/sidebar.component.tsx @@ -28,18 +28,18 @@ export function Sidebar({ items, brand }: SidebarProps) { }); useEffect(() => { - if (!listRef.current) { + if (!outsideRef.current) { return; } const listener = () => { - const y = listRef.current?.scrollTop || 0; + const y = outsideRef.current?.scrollTop || 0; setScrolled(y > 0); }; - listRef.current.addEventListener('scroll', listener); + outsideRef.current.addEventListener('scroll', listener); return () => { - listRef.current?.removeEventListener('scroll', listener); + outsideRef.current?.removeEventListener('scroll', listener); }; - }, [listRef]); + }, []); useEffect(() => { if (open) { @@ -81,8 +81,8 @@ export function Sidebar({ items, brand }: SidebarProps) { })} >
- - Messages - + +
+ Product feature +
+ 12
@@ -65,12 +67,11 @@ Product feature - + NEW -
diff --git a/apps/site/src/content/design-system/components/badge/design/badge-styles/content.mdoc b/apps/site/src/content/design-system/components/badge/design/badge-styles/content.mdoc index 3a2376810..36f9ad572 100644 --- a/apps/site/src/content/design-system/components/badge/design/badge-styles/content.mdoc +++ b/apps/site/src/content/design-system/components/badge/design/badge-styles/content.mdoc @@ -105,8 +105,10 @@ Badges come in 2 different styles: Default, used to highlight words, and Pill, u Label - - Messages + +
+ Messages +
12 diff --git a/packages/ui/src/components/badge/badge.stories.tsx b/packages/ui/src/components/badge/badge.stories.tsx index 3373ccb0c..4420afed5 100644 --- a/packages/ui/src/components/badge/badge.stories.tsx +++ b/packages/ui/src/components/badge/badge.stories.tsx @@ -131,12 +131,14 @@ export const Soft = () => ( export const Links = () => (
{COLORS.map(color => ( - - {color} - - 12 - - +
+ +
Product feature
+ + NEW + +
+
))}
); diff --git a/packages/ui/src/components/header/header.component.tsx b/packages/ui/src/components/header/header.component.tsx index bd8c43fb4..ef3c4b8c0 100644 --- a/packages/ui/src/components/header/header.component.tsx +++ b/packages/ui/src/components/header/header.component.tsx @@ -103,7 +103,7 @@ export function Header({