Skip to content

Commit

Permalink
chore(button-toggle): fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
damienrobson-sage committed Jan 13, 2025
1 parent 13216fc commit 85d1b9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 30 deletions.
9 changes: 0 additions & 9 deletions src/components/button-toggle/button-toggle.pw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -366,15 +366,6 @@ test.describe("Accessibility tests", () => {
await checkAccessibility(page);
});

test("should pass accessibility tests for Button-Toggle grouped", async ({
mount,
page,
}) => {
await mount(<ButtonToggleComponent grouped />);

await checkAccessibility(page);
});

(
[
[SIZE.SMALL, 24],
Expand Down
30 changes: 9 additions & 21 deletions src/components/button-toggle/components.test-pw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,9 @@ export const ButtonToggleGroupComponent = (
}}
{...props}
>
<ButtonToggle value="foo" grouped>
Foo
</ButtonToggle>
<ButtonToggle value="bar" grouped>
Bar
</ButtonToggle>
<ButtonToggle value="baz" grouped>
Baz
</ButtonToggle>
<ButtonToggle value="foo">Foo</ButtonToggle>
<ButtonToggle value="bar">Bar</ButtonToggle>
<ButtonToggle value="baz">Baz</ButtonToggle>
</ButtonToggleGroup>
</Box>
);
Expand All @@ -86,15 +80,9 @@ export const ButtonToggleGroupNotInBox = (
label="Grouped example"
{...props}
>
<ButtonToggle value="foo" grouped>
Foo
</ButtonToggle>
<ButtonToggle value="bar" grouped>
Bar
</ButtonToggle>
<ButtonToggle value="baz" grouped>
Baz
</ButtonToggle>
<ButtonToggle value="foo">Foo</ButtonToggle>
<ButtonToggle value="bar">Bar</ButtonToggle>
<ButtonToggle value="baz">Baz</ButtonToggle>
</ButtonToggleGroup>
);

Expand Down Expand Up @@ -133,13 +121,13 @@ export const ButtonToggleGroupComponentGroupedChildren = ({ ...props }) => {
}}
{...props}
>
<ButtonToggle key="foo" value="foo" grouped>
<ButtonToggle key="foo" value="foo">
Foo
</ButtonToggle>
<ButtonToggle key="bar" value="bar" grouped>
<ButtonToggle key="bar" value="bar">
Bar
</ButtonToggle>
<ButtonToggle key="baz" value="baz" grouped>
<ButtonToggle key="baz" value="baz">
Baz
</ButtonToggle>
</ButtonToggleGroup>
Expand Down

0 comments on commit 85d1b9c

Please sign in to comment.