Skip to content

Commit 2efc6cb

Browse files
author
Kubit
committed
Fix aria props on dot and carousel components
1 parent 5f7fb40 commit 2efc6cb

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/components/carousel/__tests__/carousel.test.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,17 +482,15 @@ describe('Carousel component', () => {
482482

483483
it('Should have aria-label in the document when prop is set', async () => {
484484
const { getByLabelText } = renderProvider(
485-
<CarouselUnControlled {...mockProps} aria-label='Mock aria-label'/>
485+
<CarouselUnControlled {...mockProps} aria-label="Mock aria-label" />
486486
);
487487

488488
const label = getByLabelText('Mock aria-label');
489489
expect(label).toBeInTheDocument();
490490
});
491491

492492
it('Should not have aria-label in the document when prop is not set', async () => {
493-
const { queryByLabelText } = renderProvider(
494-
<CarouselUnControlled {...mockProps} />
495-
);
493+
const { queryByLabelText } = renderProvider(<CarouselUnControlled {...mockProps} />);
496494

497495
const label = queryByLabelText('');
498496
expect(label).not.toBeInTheDocument();

src/components/dot/stories/dot.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { argtypes } from './argtypes';
99
const themeSelected = localStorage.getItem('themeSelected') || 'kubit';
1010

1111
const meta = {
12-
title: 'Components/Resources/ActionBottomSheet',
12+
title: 'Components/Resources/Dot',
1313
component: Story,
1414
parameters: {
1515
layout: 'centered',

src/components/functionalitiesModule/stories/functionalitiesModule.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const commonArgs: IFunctionalitiesModuleUnControlled = {
5151
actionBottomSheet: {
5252
title: { content: 'Options' },
5353
closeIcon: { icon: ICONS.ICON_CLOSE, ['aria-label']: 'ariaLabelCloseIcon' },
54+
dragIcon: { icon: ICONS.ICON_DRAG, ['aria-label']: 'ariaLabelDragIcon' },
5455
},
5556
};
5657

0 commit comments

Comments
 (0)