Skip to content

Commit

Permalink
refactor(flexgrid): Rename of the column class name
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoglesby08 committed Jan 30, 2018
1 parent 3da0131 commit ad20071
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module.exports = {
},
sections: compact([
{
name: 'FlexGrid',
name: 'Grid',
components() {
return [
path.resolve('src/components/FlexGrid/FlexGrid.jsx'),
Expand Down
2 changes: 1 addition & 1 deletion src/components/FlexGrid/Col/Col.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Col = ({ span, offset, children, ...rest }) => (
{...removeProps(rest)}
xs={span || true}
xsOffset={offset}
className={joinClassNames(gutterStyle, styles.flexGridColumn)}
className={joinClassNames(gutterStyle, styles.padding)}
>
{children}
</ReactFlexboxGridCol>
Expand Down
2 changes: 1 addition & 1 deletion src/components/FlexGrid/Col/Col.modules.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.flexGridColumn {
.padding {
padding-left: 1rem;
padding-right: 1rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

exports[`Col renders 1`] = `
<Col
className="flexGridColumn"
className="padding"
xs={true}
>
<div
className="col-xs col-xs-offset flexGridColumn"
className="col-xs col-xs-offset padding"
>
Some content
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ exports[`FlexGrid renders 1`] = `
class="row"
>
<div
class="col-xs col-xs-offset flexGridColumn"
class="col-xs col-xs-offset padding"
>
1st column content
</div>
<div
class="col-xs col-xs-offset flexGridColumn"
class="col-xs col-xs-offset padding"
>
2nd column content
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`<Notification /> renders 1`] = `
class="flexGrid limitWidth container-fluid"
>
<div
class="col-xs col-xs-offset flexGridColumn"
class="col-xs col-xs-offset padding"
>
<div
class="betweenRightMarginDesktop-3 inline"
Expand Down

0 comments on commit ad20071

Please sign in to comment.