fix(design): a toggle is pressed, never a bare aria-pressed; static labels are flat Badges with a tone, edged label spans lint-refused (E28)
This commit is contained in:
@@ -96,6 +96,10 @@ describe("IconButton", () => {
|
||||
<IconButton label="named">
|
||||
<svg />
|
||||
</IconButton>
|
||||
{/* @ts-expect-error a toggle states itself through `pressed`, which also tints it (B3) */}
|
||||
<IconButton label="raw toggle" aria-pressed>
|
||||
<svg />
|
||||
</IconButton>
|
||||
</>,
|
||||
);
|
||||
expect(screen.getByRole("button", { name: "named" })).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user