File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/components/illustration Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ const IllustrationStandAloneComponent = (
14
14
rotate = '0deg' ,
15
15
transitionDuration = '0.2s' ,
16
16
dataTestId,
17
+ 'aria-hidden' : ariaHidden ,
17
18
} : IIllustrationStandAlone ,
18
19
ref : React . ForwardedRef < HTMLImageElement > | undefined | null
19
20
) : JSX . Element => {
20
- const isEmptyAltText = ! altText ;
21
+ const isEmptyAltText = ariaHidden || ! altText ;
21
22
22
23
return (
23
24
< IllustrationStyled
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { IllustrationTypes } from '@/types';
2
2
3
3
type IllustrationAriaAttributes = Pick <
4
4
React . AriaAttributes ,
5
- 'aria-label' | 'aria-controls' | 'aria-checked'
5
+ 'aria-label' | 'aria-controls' | 'aria-checked' | 'aria-hidden'
6
6
> ;
7
7
8
8
export interface IIllustrationStandAlone extends IllustrationAriaAttributes {
You can’t perform that action at this time.
0 commit comments