Skip to content

Commit

Permalink
Merge pull request #30198 from storybookjs/docs-a11y-test-tag
Browse files Browse the repository at this point in the history
Docs: Rename `a11ytest` tag to `a11y-test`
  • Loading branch information
valentinpalkovic authored Jan 7, 2025
2 parents 89d1d0e + 103267b commit 732f0c3
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 77 deletions.
76 changes: 38 additions & 38 deletions docs/_snippets/addon-a11y-meta-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import { Button } from './button.component';

const meta: Meta<Button> = {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
};

export default meta;
```

```js filename="Button.stories.js" renderer="html" language="js"
export default {
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
};
```

Expand All @@ -24,8 +24,8 @@ import { Button } from './Button';

export default {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
};
```

Expand All @@ -37,8 +37,8 @@ import { Button } from './Button';

const meta = {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
} satisfies Meta<typeof Button>;

export default meta;
Expand All @@ -52,8 +52,8 @@ import { Button } from './Button';

const meta: Meta<typeof Button> = {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
};

export default meta;
Expand All @@ -64,8 +64,8 @@ import { Button } from './Button';

export default {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
};
```

Expand All @@ -76,8 +76,8 @@ import { Button } from './Button';

const meta = {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
} satisfies Meta<typeof Button>;

export default meta;
Expand All @@ -90,8 +90,8 @@ import { Button } from './Button';

const meta: Meta<typeof Button> = {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
};

export default meta;
Expand All @@ -105,8 +105,8 @@ export default meta;
const { Story } = defineMeta({
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
});
</script>
```
Expand All @@ -116,8 +116,8 @@ import Button from './Button.svelte';

export default {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
};
```

Expand All @@ -129,8 +129,8 @@ export default {
const { Story } = defineMeta({
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
});
</script>
```
Expand All @@ -142,8 +142,8 @@ import Button from './Button.svelte';

const meta = {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
} satisfies Meta<typeof Button>;

export default meta;
Expand All @@ -157,8 +157,8 @@ export default meta;
const { Story } = defineMeta({
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
});
</script>
```
Expand All @@ -170,8 +170,8 @@ import Button from './Button.svelte';

const meta: Meta<typeof Button> = {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
};

export default meta;
Expand All @@ -182,8 +182,8 @@ import Button from './Button.vue';

export default {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
};
```

Expand All @@ -194,8 +194,8 @@ import Button from './Button.vue';

const meta = {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
} satisfies Meta<typeof Button>;

export default meta;
Expand All @@ -208,8 +208,8 @@ import Button from './Button.vue';

const meta: Meta<typeof Button> = {
component: Button,
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
};

export default meta;
Expand All @@ -218,8 +218,8 @@ export default meta;
```js filename="Button.stories.js" renderer="web-components" language="js"
export default {
component: 'demo-button',
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
};
```

Expand All @@ -228,8 +228,8 @@ import type { Meta, StoryObj } from '@storybook/web-components';

const meta: Meta = {
component: 'demo-button',
// 👇 Re-apply the a11ytest tag for this component's stories
tags: ['a11ytest'],
// 👇 Re-apply the a11y-test tag for this component's stories
tags: ['a11y-test'],
};

export default meta;
Expand Down
Loading

0 comments on commit 732f0c3

Please sign in to comment.