diff --git a/apps/site/src/app/design-system/[...component]/components/content-tabs/components/code-content/code-content.component.tsx b/apps/site/src/app/design-system/[...component]/components/content-tabs/components/code-content/code-content.component.tsx index 4f8319d24..b451a5e53 100644 --- a/apps/site/src/app/design-system/[...component]/components/content-tabs/components/code-content/code-content.component.tsx +++ b/apps/site/src/app/design-system/[...component]/components/content-tabs/components/code-content/code-content.component.tsx @@ -89,9 +89,11 @@ export function CodeContent({ content = [], westpacUIInfo, componentProps, subCo {componentProps && ( -
+
- Props + + Props +
{subComponentProps?.map(subComponentProps => ( diff --git a/apps/site/src/app/design-system/[...component]/components/content-tabs/components/document-renderer.tsx b/apps/site/src/app/design-system/[...component]/components/content-tabs/components/document-renderer.tsx index 0024ec3cb..72c26605b 100644 --- a/apps/site/src/app/design-system/[...component]/components/content-tabs/components/document-renderer.tsx +++ b/apps/site/src/app/design-system/[...component]/components/content-tabs/components/document-renderer.tsx @@ -8,7 +8,7 @@ export const DOCUMENT_RENDERERS: Required['renderers'] = block: { divider: Divider, paragraph: props => , - code: props => , + code: props => , heading: Heading, list: props => , layout: Layout, diff --git a/apps/site/src/app/design-system/[...component]/components/content-tabs/components/tabs/components/tab/tab.component.tsx b/apps/site/src/app/design-system/[...component]/components/content-tabs/components/tabs/components/tab/tab.component.tsx index e3b86dae6..61219e9ed 100644 --- a/apps/site/src/app/design-system/[...component]/components/content-tabs/components/tabs/components/tab/tab.component.tsx +++ b/apps/site/src/app/design-system/[...component]/components/content-tabs/components/tabs/components/tab/tab.component.tsx @@ -1,5 +1,5 @@ import { useRef } from 'react'; -import { AriaTabProps, useTab } from 'react-aria'; +import { AriaTabProps, mergeProps, useFocusRing, useTab } from 'react-aria'; import { Node, TabListState } from 'react-stately'; import { styles } from './tab.styles'; @@ -7,10 +7,11 @@ import { styles } from './tab.styles'; export function Tab({ item, state }: { item: Node; state: TabListState }) { const { key, rendered } = item; const ref = useRef(null); + const { focusProps, isFocusVisible } = useFocusRing(); const { tabProps } = useTab({ key }, state, ref); const selected = key === state.selectedKey; return ( -
+
{rendered}
); diff --git a/apps/site/src/app/design-system/[...component]/components/content-tabs/components/tabs/components/tab/tab.styles.ts b/apps/site/src/app/design-system/[...component]/components/content-tabs/components/tabs/components/tab/tab.styles.ts index 1b5986e10..3264da568 100644 --- a/apps/site/src/app/design-system/[...component]/components/content-tabs/components/tabs/components/tab/tab.styles.ts +++ b/apps/site/src/app/design-system/[...component]/components/content-tabs/components/tabs/components/tab/tab.styles.ts @@ -1,10 +1,13 @@ import { tv } from 'tailwind-variants'; export const styles = tv({ - base: 'relative flex h-9 flex-1 cursor-pointer items-center justify-center border-r border-r-border font-semibold text-muted after:absolute after:inset-x-0 after:bottom-0 after:h-0 after:border-b-[3px] after:border-[transparent] last:border-r-0 sm:h-11 sm:grow-0 sm:px-10 sm:last:border-r', + base: 'relative flex h-9 flex-1 cursor-pointer items-center justify-center border-r border-r-border font-semibold text-muted after:absolute after:inset-x-0 after:bottom-0 after:h-0 after:border-b-[3px] after:border-[transparent] last:border-r-0 focus-visible:outline-none sm:h-11 sm:grow-0 sm:px-10 sm:last:border-r', variants: { selected: { true: 'text-text after:border-primary', }, + isFocusVisible: { + true: '!outline-offset-0 focus-outline focus:focus-outline focus-visible:focus-outline', + }, }, }); diff --git a/apps/site/src/app/design-system/[...component]/components/header/header.styles.ts b/apps/site/src/app/design-system/[...component]/components/header/header.styles.ts index fb8c36862..cd8c93764 100644 --- a/apps/site/src/app/design-system/[...component]/components/header/header.styles.ts +++ b/apps/site/src/app/design-system/[...component]/components/header/header.styles.ts @@ -3,7 +3,7 @@ import { tv } from 'tailwind-variants'; export const styles = tv( { slots: { - base: 'sticky top-0 z-50 flex w-full items-center gap-2 bg-hero px-2 py-3.5 transition-colors sm:px-4 md:top-[-10.125rem] md:h-[14.25rem] md:items-end', + base: 'sticky top-0 z-50 flex w-full items-center gap-2 bg-hero px-2 py-3.5 antialiased transition-colors sm:px-4 md:top-[-10.125rem] md:h-[14.25rem] md:items-end', gridButton: 'flex h-6 items-stretch gap-[0.125rem] p-1', gridButtonWrapper: 'fixed right-2 top-2 hidden items-center text-white sm:flex', hamburgerButton: 'fixed left-0 top-0 block h-4 w-4 translate-y-[-0.125rem] px-2 py-3.5 sm:left-2 lg:hidden', @@ -17,7 +17,7 @@ export const styles = tv( }, false: { base: '', - title: 'md:typography-brand-2 md:px-2 md:pb-[1.75rem] md:pt-5 md:leading-none lg:ml-2', + title: 'md:typography-brand-2 md:px-2 md:pb-[1.6875rem] md:pt-5 md:leading-none lg:ml-2', }, }, brand: { diff --git a/apps/site/src/app/design-system/components/hero/hero.component.tsx b/apps/site/src/app/design-system/components/hero/hero.component.tsx index df304c05c..6df926eac 100644 --- a/apps/site/src/app/design-system/components/hero/hero.component.tsx +++ b/apps/site/src/app/design-system/components/hero/hero.component.tsx @@ -19,37 +19,41 @@ export function Hero() {
- +

Deliver quality user interfaces that scale – fast!

-

Simplify your projects with reusable components and patterns

+

Simplify your projects with reusable components and patterns

- + -
+
-
Go to market faster leveraging tools to get you up and running instantly
+
+ Go to market faster leveraging tools to get you up and running instantly +
-
+
-
Design, build and ship consistent brand experiences
+
Design, build and ship consistent brand experiences
-
+
- + +
+
+ Create more accessible solutions that are inclusive of all customers
-
Create more accessible solutions that are inclusive of all customers
diff --git a/apps/site/src/app/design-system/components/hero/hero.styles.ts b/apps/site/src/app/design-system/components/hero/hero.styles.ts index 1ed26aee1..92886cda9 100644 --- a/apps/site/src/app/design-system/components/hero/hero.styles.ts +++ b/apps/site/src/app/design-system/components/hero/hero.styles.ts @@ -4,7 +4,7 @@ import { tv } from 'tailwind-variants'; export const styles = tv({ slots: { base: 'relative overflow-hidden bg-background pb-7 text-center antialiased sm:pb-11 sm:text-white', - heading: 'typography-brand-4 mt-15 sm:typography-brand-1 sm:mt-7', + heading: 'typography-brand-4 mt-15 !leading-none sm:typography-brand-1 sm:mt-7', }, variants: { brand: { diff --git a/apps/site/src/components/document-renderer/heading/heading.style.ts b/apps/site/src/components/document-renderer/heading/heading.style.ts index b85fa0ae6..798395d0b 100644 --- a/apps/site/src/components/document-renderer/heading/heading.style.ts +++ b/apps/site/src/components/document-renderer/heading/heading.style.ts @@ -10,8 +10,8 @@ export const styles = tv({ }, level: { 1: 'typography-body-5 mb-3', - 2: 'typography-body-7 mb-7 sm:typography-body-6', - 3: 'typography-body-8 mb-2', + 2: 'typography-body-7 mb-2 sm:typography-body-6 sm:mb-3', + 3: 'typography-body-8 my-2 first:mt-0', 4: 'typography-body-9 mb-2', 5: 'typography-body-10 mb-2', 6: 'typography-body-10 mb-2',