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

Commit 24e5605

Browse files
Merge pull request #6071 from luixxiul/fix-download-bar-close-button
Replaced fa-times for close button on download bar with SVG button
2 parents a6c6384 + 8caa528 commit 24e5605

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

img/toolbar/close_download_btn.svg

+1
Loading
+1
Loading

js/components/downloadsBar.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ class DownloadsBar extends ImmutableComponent {
134134
}
135135
</div>
136136
<div className='downloadBarButtons'>
137-
<Button iconClass='fa-times'
138-
className='downloadButton smallButton hideButton'
137+
<Button className='downloadButton'
139138
onClick={downloadActions.hideDownloadsToolbar} />
140139
</div>
141140
</div>

less/downloadBar.less

+11-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,17 @@
132132
margin: auto 0;
133133

134134
.downloadButton {
135-
margin: 0 2px;
135+
background: url('../img/toolbar/close_download_btn.svg') center no-repeat;
136+
background-size: 14px 14px;
137+
height: 18px;
138+
width: 18px;
139+
140+
&:hover {
141+
background: url('../img/toolbar/close_download_btn_hover.svg') center no-repeat;
142+
background-size: 14px 14px;
143+
height: 18px;
144+
width: 18px;
145+
}
136146

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

0 commit comments

Comments
 (0)