Skip to content

Commit

Permalink
chore(theming): migrate theming documentation to storybook (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Green committed Feb 23, 2021
1 parent 35a229c commit 1ff5ae7
Show file tree
Hide file tree
Showing 18 changed files with 470 additions and 680 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ <h1 class="c-main__title">React Components</h1>
<a class="u-fg-inherit" href="storybook/?path=/docs/components-tags-readme--page">Tags</a>
</div>
<div class="u-mb-sm">
<a class="u-fg-inherit" href="theming">Theming</a>
<a class="u-fg-inherit" href="storybook/?path=/docs/components-theming-readme--page">Theming</a>
</div>
<div class="u-mb-sm">
<a class="u-fg-inherit" href="storybook/?path=/docs/components-tooltips-readme--page">Tooltips</a>
Expand Down
12 changes: 6 additions & 6 deletions packages/theming/.size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"index.cjs.js": {
"bundled": 22854,
"minified": 14411,
"gzipped": 5292
"bundled": 22830,
"minified": 14393,
"gzipped": 5287
},
"index.esm.js": {
"bundled": 21995,
"minified": 13630,
"gzipped": 5171,
"bundled": 21975,
"minified": 13616,
"gzipped": 5166,
"treeshaked": {
"rollup": {
"code": 3408,
Expand Down
4 changes: 2 additions & 2 deletions packages/theming/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ complex, depending on your needs:

### RTL

```jsx static
```jsx
import { ThemeProvider, DEFAULT_THEME } from '@zendeskgarden/react-theming';
import { Notification } from '@zendeskgarden/react-notifications';

Expand All @@ -56,7 +56,7 @@ import { Notification } from '@zendeskgarden/react-notifications';
The `withTheme` [HOC](https://reactjs.org/docs/higher-order-components.html)
utility allows any component to interact with its `ThemeProvider`.

```jsx static
```jsx
import { withTheme } from '@zendeskgarden/react-theming';

const Div = ({ theme, children }) => (
Expand Down
242 changes: 0 additions & 242 deletions packages/theming/examples/default-theme.md

This file was deleted.

101 changes: 0 additions & 101 deletions packages/theming/examples/palette.md

This file was deleted.

Loading

0 comments on commit 1ff5ae7

Please sign in to comment.