From 1ae8b885221800197e570b30ffcb56d74f9147f8 Mon Sep 17 00:00:00 2001 From: Gary Thomas Date: Tue, 1 Nov 2016 12:16:47 -0700 Subject: [PATCH] gt - Use new spacing utils class names --- src/components/Alert.js | 2 +- src/components/Datapair.js | 2 +- stories/Alerts.js | 6 +++--- stories/Buttons.js | 9 +++++---- stories/Datapair.js | 4 ++-- stories/Forms.js | 14 +++++++------- 6 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/components/Alert.js b/src/components/Alert.js index b3d38c6dd..069878f5f 100644 --- a/src/components/Alert.js +++ b/src/components/Alert.js @@ -27,7 +27,7 @@ class AlertComponent extends React.Component { return ( - {icon ? : null} + {icon ? : null} {icon ?
{children}
: children}
); diff --git a/src/components/Datapair.js b/src/components/Datapair.js index 00b1fdaed..5ba62eb2a 100644 --- a/src/components/Datapair.js +++ b/src/components/Datapair.js @@ -2,7 +2,7 @@ import React from 'react'; import { Col, Row } from 'reactstrap'; const Datapair = (props) => ( - + {props.label} {props.children || props.value} diff --git a/stories/Alerts.js b/stories/Alerts.js index a91518384..ecdf40a52 100644 --- a/stories/Alerts.js +++ b/stories/Alerts.js @@ -9,7 +9,7 @@ storiesOf('Alerts', module)

The default alert is a "warning". It supports any sort of custom markup.

-

+

You can specify an alert color. This one has color="success" @@ -27,7 +27,7 @@ storiesOf('Alerts', module) You can specify an alert color. This one has color="success" -

+

Humblebrag prism twee, gochujang seitan whatever asymmetrical ramps enamel pin austin salvia swag helvetica. Chartreuse food truck tofu raclette, 3 wolf moon poke chia paleo skateboard. Pickled tote bag echo park raclette. Irony fashion axe sartorial, cornhole @@ -59,7 +59,7 @@ storiesOf('Alerts', module) This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.

-

+

Whenever you need to, be sure to use margin utilities to keep things nice and tidy.

diff --git a/stories/Buttons.js b/stories/Buttons.js index b30032882..4ce9a95a4 100644 --- a/stories/Buttons.js +++ b/stories/Buttons.js @@ -53,17 +53,17 @@ storiesOf('Buttons', module) ) .addWithInfo('Groups', () => (
- + - + - + @@ -104,7 +104,8 @@ storiesOf('Buttons', module)
- )) + )); +// TODO // .addWithInfo('with dropdowns', () =>

TODO

) // .addWithInfo('with split dropdowns', () =>

TODO

) // .addWithInfo('with dropups', () =>

TODO

); diff --git a/stories/Datapair.js b/stories/Datapair.js index 4d0bec2bc..d7d42f3b4 100644 --- a/stories/Datapair.js +++ b/stories/Datapair.js @@ -6,7 +6,7 @@ import { Datapair } from '../src'; storiesOf('Datapair', module) .addWithInfo('with props', () => ( - + @@ -14,7 +14,7 @@ storiesOf('Datapair', module) )) .addWithInfo('with HTML value', () => ( - + Custom markup diff --git a/stories/Forms.js b/stories/Forms.js index 7873d01ee..1fabfc017 100644 --- a/stories/Forms.js +++ b/stories/Forms.js @@ -6,24 +6,24 @@ import { FormRow, FormChoice, CurrencyInput } from '../src'; storiesOf('Forms', module) .addWithInfo('Inputs', () => ( - -

Inputs

+ +

Inputs

An Input is the simplest unit for building forms.

-

Default (Text) Input

+

Default (Text) Input

-

Custom Inputs

+

Custom Inputs

<CurrencyInput/>

)) .addWithInfo('Form Rows', () => ( - -

Form Rows

+ +

Form Rows

A FormRow combines a label and an input with an interface to provide feedback, hints, and can specify whether or not the field is required.

-

Example

+

Example