Skip to content

Commit

Permalink
fix: update spacing of icons in button (#52)
Browse files Browse the repository at this point in the history
No scss update. Should document this method.
  • Loading branch information
Adam Butterworth authored May 15, 2019
1 parent cd7e37f commit 1da6659
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/pages/Basics.ButtonsAndLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,14 @@ export default function ButtonsAndLinks() {
<h5 className="section">With Icons</h5>

<div className="mb-3">
<button type="button" className="mr-2 btn btn-primary btn"><FontAwesomeIcon icon={faCheckCircle} /> Medium</button>
<button type="button" className="mr-2 btn btn-primary btn-lg"><FontAwesomeIcon icon={faCheckCircle} /> Large</button>
<button type="button" className="mr-2 btn btn-primary btn">
<FontAwesomeIcon className="mr-2" icon={faCheckCircle} />
Medium
</button>
<button type="button" className="mr-2 btn btn-primary btn-lg">
<FontAwesomeIcon className="mr-2" icon={faCheckCircle} />
Large
</button>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/pages/Basics.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class Basics extends React.Component {
<div className="mb-5 d-flex align-items-center">
<span className="mr-5"><a href="#demo">Link</a></span>
<span className="mr-5"><a href="#demo">Link extension →</a></span>
<span className="mr-5"><a href="#demo"><FontAwesomeIcon icon={faCheckCircle} />Link with icon</a></span>
<span className="mr-5"><a href="#demo"><FontAwesomeIcon icon={faCheckCircle} className="mr-1" />Link with icon</a></span>
<span className="mr-5"><a className="btn btn-link" href="#demo">Link with button container</a></span>
</div>
<div className="alert alert-info d-flex" role="alert">
Expand Down

0 comments on commit 1da6659

Please sign in to comment.