aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/layout/code.stories.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): rewrite Code component and usePrism hookArmand Philippot2023-11-111-121/+0
| | | | | | | | | | | | * move Prism styles to Sass placeholders to avoid repeats * let usePrism consumer define its plugins (remove default ones) * remove `plugins` prop from Code component * add new props to Code component to let consumer configure plugins (and handle plugin list from the given options) However there are some problems with Prism plugins: line-highlight and treeview does not seems to be loaded. I don't want to use Babel instead of SWC so I have no solution for now.
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-6/+4
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* chore: add an aria label to code blocksArmand Philippot2022-06-071-0/+13
| | | | | Prism is adding a tabindex to code blocks, so I think an aria label can help screen reader users to identify the tabbed content.
* chore: complete Storybook storiesArmand Philippot2022-05-211-8/+0
|
* chore: add a Code componentArmand Philippot2022-04-191-0/+118