Skip to content

Commit

Permalink
Took the information button out of the line of text
Browse files Browse the repository at this point in the history
Relates #19
  • Loading branch information
maxgerber committed Oct 12, 2017
1 parent 55cc783 commit 9f9d9db
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ModalInfograph.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ModalInfograph extends React.Component {
render() {
return (
<div className="infograph-container">
<button className="modal-button pointer ba b--white bg-white b h2 pink" onClick={this.handleOpenModal}>i</button>
<button className="modal-button bn modal-info pointer" onClick={this.handleOpenModal}>i</button>
<ReactModal
isOpen={this.state.showModal}
contentLabel="onRequestClose Example"
Expand Down
10 changes: 10 additions & 0 deletions src/css/Modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
height: 0;
width: 0;
}
.modal-info {
position: absolute;
right: 6rem;
bottom: 3rem;
background-color: hotpink;
color: white;
border-radius: 5px;
padding: 0rem 0.5rem;
font-size: 2rem;
}

.modal-button:focus {
outline: none;
Expand Down

0 comments on commit 9f9d9db

Please sign in to comment.