diff --git a/.changeset/nasty-clocks-raise.md b/.changeset/nasty-clocks-raise.md new file mode 100644 index 00000000..afebca2c --- /dev/null +++ b/.changeset/nasty-clocks-raise.md @@ -0,0 +1,5 @@ +--- +'@smile/haring-react': minor +--- + +(accessibility) make corrections in Image/Avatar component diff --git a/packages/haring-react/src/Components/DocumentBox/DocumentBox.tsx b/packages/haring-react/src/Components/DocumentBox/DocumentBox.tsx index 01e39a6b..25091e89 100644 --- a/packages/haring-react/src/Components/DocumentBox/DocumentBox.tsx +++ b/packages/haring-react/src/Components/DocumentBox/DocumentBox.tsx @@ -18,6 +18,7 @@ import defaultImage from '../../../assets/defaultImage.jpg'; import classes from './DocumentBox.module.css'; export interface IDocumentBoxProps { + altText?: string; author?: ReactNode; children?: ReactNode; date?: ReactNode; @@ -31,6 +32,7 @@ export interface IDocumentBoxProps { export function DocumentBox(props: IDocumentBoxProps): ReactNode { const { + altText = 'thumbnail', author, children, date, @@ -58,6 +60,7 @@ export function DocumentBox(props: IDocumentBoxProps): ReactNode { }`} > {altText} thumbnail thumbnail thumbnail thumbnail {rightContentMobileMock} - + ); diff --git a/packages/haring-react/src/Components/SelectableList/__snapshots__/SelectableList.test.tsx.snap b/packages/haring-react/src/Components/SelectableList/__snapshots__/SelectableList.test.tsx.snap index f42bb4a6..ecf43d7c 100644 --- a/packages/haring-react/src/Components/SelectableList/__snapshots__/SelectableList.test.tsx.snap +++ b/packages/haring-react/src/Components/SelectableList/__snapshots__/SelectableList.test.tsx.snap @@ -64,6 +64,7 @@ exports[`SelectableList matches snapshot 1`] = ` class="undefined " > thumbnail thumbnail thumbnail - + {altText} thumbnail thumbnail thumbnail