diff --git a/apps/site/src/app/articles/[article]/components/article-page/article-page.component.tsx b/apps/site/src/app/articles/[article]/components/article-page/article-page.component.tsx index 93248949e..1c44b0ebf 100644 --- a/apps/site/src/app/articles/[article]/components/article-page/article-page.component.tsx +++ b/apps/site/src/app/articles/[article]/components/article-page/article-page.component.tsx @@ -19,7 +19,7 @@ export function ArticlePage({ article, author }: ArticlePageProps) {
-

+

{article.name}

{author?.name}

@@ -35,14 +35,16 @@ export function ArticlePage({ article, author }: ArticlePageProps) {
-
- - -
+ +
+ + +
+
diff --git a/apps/site/src/app/articles/[article]/components/heading/heading.style.ts b/apps/site/src/app/articles/[article]/components/heading/heading.style.ts index aa24dfbb3..dd03bbf9f 100644 --- a/apps/site/src/app/articles/[article]/components/heading/heading.style.ts +++ b/apps/site/src/app/articles/[article]/components/heading/heading.style.ts @@ -10,7 +10,7 @@ export const styles = tv({ }, level: { 1: 'typography-site-5 mb-5', - 2: 'typography-site-7 mb-5 xsl:typography-site-6', + 2: 'typography-site-7 mb-4 xsl:typography-site-6 xsl:mb-5', 3: 'typography-site-7 mb-5', 4: 'typography-site-9 mb-5', 5: 'typography-site-10 mb-2', diff --git a/apps/site/src/components/component-blocks/components/article-body-image/article-body-image.style.ts b/apps/site/src/components/component-blocks/components/article-body-image/article-body-image.style.ts index 0c7cefaa6..a5f692e46 100644 --- a/apps/site/src/components/component-blocks/components/article-body-image/article-body-image.style.ts +++ b/apps/site/src/components/component-blocks/components/article-body-image/article-body-image.style.ts @@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants'; export const styles = tv({ slots: { - base: 'relative mx-0 my-4 md:-mx-18', + base: 'relative mx-0 my-7 xsl:my-9 md:-mx-17', img: 'block w-full', caption: 'typography-body-10 mt-2 text-muted', }, diff --git a/apps/site/src/components/component-blocks/components/leading-text/leading-text.style.ts b/apps/site/src/components/component-blocks/components/leading-text/leading-text.style.ts index 6474dc0b4..eab2af464 100644 --- a/apps/site/src/components/component-blocks/components/leading-text/leading-text.style.ts +++ b/apps/site/src/components/component-blocks/components/leading-text/leading-text.style.ts @@ -1,5 +1,5 @@ import { tv } from 'tailwind-variants'; export const styles = tv({ - base: 'typography-site-8 mx-0 mb-9 leading-[1.6] xsl:typography-site-7 xsl:leading-[1.6] md:-mx-16', + base: 'typography-site-8 mx-0 mb-9 leading-[1.6] xsl:typography-site-7 xsl:leading-[1.6] md:-mx-17', }); diff --git a/apps/site/src/components/document-renderer/list/list.style.ts b/apps/site/src/components/document-renderer/list/list.style.ts index 47f170ebf..89cdfe7b9 100644 --- a/apps/site/src/components/document-renderer/list/list.style.ts +++ b/apps/site/src/components/document-renderer/list/list.style.ts @@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants'; export const styles = tv({ slots: { - base: 'mb-11 w-full p-0 leading-[2] last:mb-0', + base: 'my-4 w-full p-0 leading-[2] last:mb-0', li: 'relative mb-2 pl-3 leading-7', }, variants: { diff --git a/apps/site/src/content/design-system/components/compacta/design/Error states/content.mdoc b/apps/site/src/content/design-system/components/compacta/design/Error states/content.mdoc index a5adf82e4..12b1c9d7a 100644 --- a/apps/site/src/content/design-system/components/compacta/design/Error states/content.mdoc +++ b/apps/site/src/content/design-system/components/compacta/design/Error states/content.mdoc @@ -1,3 +1,83 @@ When a user attempts to progress through the form, errors are captured at this point. Any Compacta that has an error will automatically open and highlight the error inline. -Loading... +```tsx +() => { + const [inputs, setInputs] = useState({}); + + const handleChange = e => { + setInputs(prev => ({ ...prev, [e.target.name]: e.target.value })); + }; + + return ( + + {({ id, setPrimaryTitle, setSecondaryTitle, setTertiaryTitle }) => ( +
+ + + + + + + + { + handleChange(e); + setSecondaryTitle(e.target.value); + }} + width={30} + invalid + /> + + + + { + handleChange(e); + setTertiaryTitle(e.target.value); + }} + width={20} + invalid + errorMessage="Error message goes here if activated" + before="$" + label="Amount to transfer" + > + + + +
+ )} +
+ ); +}; +```