diff --git a/components/Aside/Aside.module.css b/components/Aside/Aside.module.css index 95027bc98..d17e3fca2 100644 --- a/components/Aside/Aside.module.css +++ b/components/Aside/Aside.module.css @@ -5,17 +5,16 @@ .admonition div, .admonition ol, .admonition ul { - @apply mb-3; + @apply mb-3 !important; } .admonition ol li::before { - @apply mr-1; + @apply mr-1 !important; } .admonition div:last-child, .admonition ol:last-child, .admonition ul:last-child, -.admonition li, -.admonition div p { +.admonition li { @apply my-0 !important; } diff --git a/components/ErrorBoundary/__snapshots__/ErrorBoundary.test.tsx.snap b/components/ErrorBoundary/__snapshots__/ErrorBoundary.test.tsx.snap index ab81192ab..a83799b97 100644 --- a/components/ErrorBoundary/__snapshots__/ErrorBoundary.test.tsx.snap +++ b/components/ErrorBoundary/__snapshots__/ErrorBoundary.test.tsx.snap @@ -40,56 +40,40 @@ exports[`ErrorBoundary should render alert message correctly (snapshot) 1`] = ` role="alert" >
-

- - Please check the following information: - -

+ Please check the following information: +
-

- - ComponentWithError. - -

+ ComponentWithError. +
-

- - Please check terminal output for further details. - -

+ Please check terminal output for further details. +
-

- - Please reload this page after changing code. - -

+ Please reload this page after changing code. +
diff --git a/components/ImageCard/ImageCard.tsx b/components/ImageCard/ImageCard.tsx index 3160e9716..d4f22671a 100644 --- a/components/ImageCard/ImageCard.tsx +++ b/components/ImageCard/ImageCard.tsx @@ -1,13 +1,15 @@ import Card from '@components/Card'; import Image from '@components/Image'; +import { classNames } from '@components/utils'; interface Props { src?: string; title?: string; alt?: string; + className?: string; } -const ImageCard = ({ src, title, alt }: Props): JSX.Element => { +const ImageCard = ({ src, title, alt, className }: Props): JSX.Element => { if (!src) { return ( { } return ( - }> + } + className={classNames(className, 'text-center')} + > ); diff --git a/components/ImageCard/__snapshots__/ImageCard.test.tsx.snap b/components/ImageCard/__snapshots__/ImageCard.test.tsx.snap index c309ebae7..3c0cf42b1 100644 --- a/components/ImageCard/__snapshots__/ImageCard.test.tsx.snap +++ b/components/ImageCard/__snapshots__/ImageCard.test.tsx.snap @@ -3,7 +3,7 @@ exports[`ImageCard should render local image correctly (snapshot) 1`] = `
( - -

{children}

+const Paragraph = ({ children, className, ...props }: Props): JSX.Element => ( + + {children} );