Skip to content

Commit 120adcf

Browse files
author
Kubit
committed
Add tabIndex prop to Image component
1 parent baeb5a0 commit 120adcf

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/components/image/imageStandAlone.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const ImageStandAloneComponent = (
2121
fallbackRatio={props.ratio && getFallbackRatio(props.ratio)}
2222
objectFit={props?.objectFit}
2323
ratio={props.ratio}
24+
tabIndex={props.tabIndex}
2425
>
2526
<PictureSourceStandAlone mediaSource={props.images[DeviceBreakpointsType.LARGE_DESKTOP]} />
2627
<PictureSourceStandAlone mediaSource={props.images[DeviceBreakpointsType.DESKTOP]} />

src/components/image/stories/image.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,6 @@ export const Image: Story = {
5252
},
5353
},
5454
themeArgs: themesObject[themeSelected][STYLES_NAME.IMAGE],
55+
tabIndex: 1,
5556
},
5657
};

src/components/image/types/image.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export interface IImageStandAlone {
2525
borderRadius?: string;
2626
objectFit?: ImageObjectFitType;
2727
component?: GenericImageType;
28+
tabIndex?: number;
2829
}
2930

3031
export type IImage = IImageStandAlone;

0 commit comments

Comments
 (0)