Skip to content

Commit

Permalink
Use image to display close button.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tina C Lin (RD-TW) committed May 31, 2018
1 parent ea13c09 commit b458908
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/Modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ class Modal extends PureComponent {
type="button"
className={styles.close}
onClick={this.handleClose}
>
×
</button>
/>
);
}
renderModalContent({ showCloseButton, size, className, children, ...props }) {
Expand Down
5 changes: 5 additions & 0 deletions src/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions src/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,18 @@
margin: 0;
line-height: 20px;
cursor: pointer;
background: transparent;
background: transparent url('./close.svg');
border: 0;
-webkit-appearance: none;
font-size: 30px;
font-weight: normal;
color: #999999;
text-shadow: none;
opacity: 1;
outline: none;
width: 16px;
height: 16px;
opacity: .5;
&:hover, &:focus {
opacity: 1;
}
}

.modal-header {
Expand Down

0 comments on commit b458908

Please sign in to comment.