You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks';
import * as stories from './Icon.stories.tsx';
import { Icon } from '.';
<Meta title="Components|Icon" component={Icon} />
# Icon
An Icon is a piece of visual element, but we must ensure its accessibility while using it.
It can have 2 purposes:
+ *decorative only*: for example, it illustrates a label next to it. We must ensure that it is ignored by screen readers, by setting `aria-hidden` attribute (ex: `<Icon name="article-20" aria-hidden />`)
+ *non-decorative*: it means that it delivers information. For example, an icon as only child in a button. The meaning can be obvious visually, but it must have a proper text alternative via `aria-label` for screen readers. (ex: `<Icon name="article-20" aria-label="Print this document" />`)
Outside of list `code` is correct.
<Preview>
<Story name="basic">{stories.basic}</Story>
</Preview>
adrian-potepa
changed the title
<code /> styles doesn't show up in addon-docs
<code /> styles doesn't show up in addon-docs storybook@5.3.0-alpha.33
Oct 31, 2019
Describe the bug
In .mdx files if we use CSF Stories with MDX Docs mode (https://github.com/storybookjs/storybook/blob/next/addons/docs/docs/recipes.md#csf-stories-with-mdx-docs)
styles doesn't work inside
<li>
.Screenshots
That how it looks:
How it should looks:
Code snippets
.mdx
file example:System:
Additional context
Temporary fix: just add styles to storybook:
The text was updated successfully, but these errors were encountered: