Skip to content

Commit

Permalink
feat(redmine 1306608): accessibility - corrections to images
Browse files Browse the repository at this point in the history
  • Loading branch information
Meriemu committed Aug 1, 2024
1 parent 4bed473 commit d4ab4ec
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-clocks-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@smile/haring-react': minor
---

(accessibility) make corrections in Image/Avatar component
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function DocumentBox(props: IDocumentBoxProps): ReactNode {
}`}
>
<Image
alt="thumbnail"
classNames={{
root: classes.imageRoot,
}}
Expand Down
5 changes: 4 additions & 1 deletion packages/haring-react/src/Components/Header/Header.mock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ export const rightContentMobileMock = (
export const rightContentMock = (
<>
{rightContentMobileMock}
<Avatar src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=250&q=80" />
<Avatar
alt="profile"
src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=250&q=80"
/>
</>
);
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function Thumbnail(props: IThumbnailProps): ReactElement {
)}
</div>
</Group>
<Image radius="16px" src={image} />
<Image alt="thumbnail" radius="16px" src={image} />
</Box>
<ConfirmModal
{...confirmAction}
Expand Down

0 comments on commit d4ab4ec

Please sign in to comment.