Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 955ed18

Browse files
committed
Organizing Storybook components
1 parent fe7fb28 commit 955ed18

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

components/atoms/RichText/RichText.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
& p,
88
&.p {
99
@apply font-primary text-root-em mb-20;
10+
11+
& > a {
12+
@apply text-primary;
13+
}
1014
}
1115

1216
/* Heading Styles */

components/atoms/RichText/RichText.stories.mdx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Meta, Story, Canvas} from '@storybook/addon-docs/blocks'
22
import RichText from '.'
33

4-
<Meta title="Design System/Atoms/RichText" component={RichText} />
4+
<Meta title="Components/Atoms/RichText" component={RichText} />
55

66
# RichText
77

@@ -23,9 +23,8 @@ The following shows examples that have generic styles applied.
2323

2424
<Canvas>
2525
<Story name="ContentSamples">
26-
<RichText tag='div'>
27-
{
28-
`<h1>H1</h1>
26+
<RichText tag="div">
27+
{`<h1>H1</h1>
2928
<h2>H2</h2>
3029
<h3>H3</h3>
3130
<h3>H3</h3>
@@ -54,8 +53,7 @@ The following shows examples that have generic styles applied.
5453
</ol>
5554
</li>
5655
<li>OL List item 3</li>
57-
</ol>`
58-
}
56+
</ol>`}
5957
</RichText>
6058
</Story>
6159
</Canvas>
@@ -66,7 +64,7 @@ In certain cases the wrapper element should change according to the content need
6664

6765
<Canvas>
6866
<Story name="Tag">
69-
<RichText tag='h2'>
67+
<RichText tag="h2">
7068
{`This heading has <strong>Bold Content</strong> and <i>Italics</i>`}
7169
</RichText>
7270
</Story>
@@ -79,9 +77,9 @@ Arbitrary HTML attributes can be added to the RichText component with the `attri
7977
<Canvas>
8078
<Story name="Attributes">
8179
<RichText
82-
tag='h2'
80+
tag="h2"
8381
attributes={{
84-
'data-att': true,
82+
'data-att': true
8583
}}
8684
>
8785
{`This heading has <strong>Bold Content</strong> and <i>Italics</i>`}
@@ -101,10 +99,9 @@ export const Template = (args) => <Icon {...args} />
10199
args={{
102100
id: 'component-id',
103101
className: 'component-class',
104-
children: <p>Paragraph content.</p>,
102+
children: <p>Paragraph content.</p>
105103
}}
106104
>
107105
{Template.bind({})}
108106
</Story>
109107
</Canvas>
110-

components/molecules/AlgoliaSearch/AlgoliaSearch.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Canvas, Meta, Story} from '@storybook/addon-docs/blocks'
22
import AlgoliaSearch from './'
33

4-
<Meta title="Design System/Molecules/AlgoliaSearch" component={AlgoliaSearch} />
4+
<Meta title="Components/Molecules/AlgoliaSearch" component={AlgoliaSearch} />
55

66
# Search
77

components/molecules/Form/Form.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as Yup from 'yup'
66

77
import Form from '.'
88

9-
<Meta title="Design System/Molecules/Form" component={Form} />
9+
<Meta title="Components/Molecules/Form" component={Form} />
1010

1111
# Form
1212

components/molecules/GravityForm/Fields/Field.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const fieldsSample = [
7373
}
7474
]
7575

76-
<Meta title="Design System/Molecules/GravityForm/Fields" component={Fields} />
76+
<Meta title="Components/Molecules/GravityForm/Fields" component={Fields} />
7777

7878
# Fields
7979

components/molecules/GravityForm/GravityForm.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export const sampleForm = {
229229
}
230230
}
231231

232-
<Meta title="Design System/Molecules/GravityForm" component={GravityForm} />
232+
<Meta title="Components/Molecules/GravityForm" component={GravityForm} />
233233

234234
# GravityForm
235235

0 commit comments

Comments
 (0)