Skip to content

Commit

Permalink
Update input examples for change in axe-core rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuth committed Nov 16, 2020
1 parent 922e629 commit 4fa9448
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo/src/stories/input.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ export const Input1 = () => (
);
Input1.storyName = 'Input with label (should pass)';

export const Input2 = () => <Input placeholder="Favorite coffee" />;
export const Input2 = () => <Input />;
Input2.storyName = 'Input without label (should fail)';

export const Input3 = () => <Input placeholder="Favorite coffee" />;
export const Input3 = () => <Input />;
Input3.storyName = 'Input without label but skipped (should pass)';
Input3.parameters = {
axe: {
disabled: true,
},
};

export const Input4 = () => <Input placeholder="Favorite coffee" role="wut-the-wut" />;
export const Input4 = () => <Input role="wut-the-wut" />;
Input4.storyName = 'Input without label and invalid role (should fail)';

export const Input5 = () => <Input placeholder="Favorite coffee" />;
export const Input5 = () => <Input />;
Input5.storyName = 'Input without label but "label" rule is disabled (should pass)';
Input5.parameters = {
axe: {
Expand Down

0 comments on commit 4fa9448

Please sign in to comment.