Skip to content

Commit

Permalink
docs(examples): Use Typography components in code examples within the…
Browse files Browse the repository at this point in the history
… /old-components folder
  • Loading branch information
lzcabrera committed Oct 26, 2017
1 parent c15b761 commit 4a7d497
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/old-components/ExpandCollapse/Panel.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Accordion is a special kind of Collapse, which allows only one panel to be expan
```
<Group accordion>
<Panel header="Specs">
<p>A fast CPU, a striking GPU.</p>
A fast CPU, a striking GPU.
</Panel>
<Panel header="Colours">
<p>Everything from tulips to crimsons.</p>
Everything from tulips to crimsons.
</Panel>
</Group>
```
Expand Down
11 changes: 5 additions & 6 deletions src/old-components/SelectorCounter/SelectorCounter.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ const handleSubmit = (e) => {
const successful = state.succeeded;
const invalid = (state.curr === 5);
const listError = invalid? 'list--error':'';
const listChecked = successful? 'list--checked':'';
const listType = invalid? 'x': 'checkmark';
const fieldError = invalid? 'field--error':'';
const fieldSuccess = successful? 'field--success':'';
Expand All @@ -78,10 +77,10 @@ const helperSuccess = successful? 'helper--success':'';
<div className={`field ${fieldError} ${fieldSuccess}`}>
<label htmlFor="ex-selcounter">How many smartphone plans?</label>
<div id="ex-selcounter-desc">
<p className="text--small">Instructions</p>
<ul className={`list list--compact ${listError} ${listChecked}`}>
<li className="list__item">Do not pick 5</li>
</ul>
<Paragraph size="small">Instructions</Paragraph>
<UnorderedList listStyle={listType}>
<UnorderedList.Item >Do not pick 5</UnorderedList.Item>
</UnorderedList>
</div>
<SelectorCounter
ref={(counter) => this.counter = counter}
Expand Down
4 changes: 2 additions & 2 deletions src/old-components/Spinner/Spinner.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Wrap the `Spinner` around the content to use embedded mode.
```
<Spinner spinning>
<section>
<h3>Current Bill</h3>
<p>View your latest bill here.</p>
<Heading level="h3">Current Bill</Heading>
<Paragraph>View your latest bill here.</Paragraph>
</section>
</Spinner>
```
Expand Down

0 comments on commit 4a7d497

Please sign in to comment.