Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #6071 from luixxiul/fix-download-bar-close-button
Browse files Browse the repository at this point in the history
Replaced fa-times for close button on download bar with SVG button
  • Loading branch information
bradleyrichter authored Dec 8, 2016
2 parents a6c6384 + 8caa528 commit 24e5605
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions img/toolbar/close_download_btn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/toolbar/close_download_btn_hover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions js/components/downloadsBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ class DownloadsBar extends ImmutableComponent {
}
</div>
<div className='downloadBarButtons'>
<Button iconClass='fa-times'
className='downloadButton smallButton hideButton'
<Button className='downloadButton'
onClick={downloadActions.hideDownloadsToolbar} />
</div>
</div>
Expand Down
12 changes: 11 additions & 1 deletion less/downloadBar.less
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,17 @@
margin: auto 0;

.downloadButton {
margin: 0 2px;
background: url('../img/toolbar/close_download_btn.svg') center no-repeat;
background-size: 14px 14px;
height: 18px;
width: 18px;

&:hover {
background: url('../img/toolbar/close_download_btn_hover.svg') center no-repeat;
background-size: 14px 14px;
height: 18px;
width: 18px;
}

&.hideButton:not([disabled]):hover {
background: @chromeControlsWarningBackground;
Expand Down

0 comments on commit 24e5605

Please sign in to comment.