Skip to content

Commit

Permalink
Use icon--alt-text for 4chan Settings header icon instead of font-siz…
Browse files Browse the repository at this point in the history
…e hack. #2395
  • Loading branch information
ccd0 committed Apr 14, 2020
1 parent c9ab48d commit 7c88ea6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/General/Header.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ Header =
cs.className = 'fourchan-x--icon icon--large'
Icon.set cs, 'book', 'Catalog Settings'
else
cs.title = cs.textContent = '4chan Settings'
cs.title = '4chan Settings'
cs.className = 'native-settings'
$.extend cs, `<%= html('<span class="icon--alt-text">4chan Settings</span>') %>`
$.on cs, 'click', () ->
$.id('settingsWindowLink').click()
@addShortcut 'native', cs, 810
Expand Down
2 changes: 0 additions & 2 deletions src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,6 @@ audio.controls-added {
margin-left: 3px;
}
:root.shortcut-icons .native-settings {
font-size: 0;
color: transparent;
display: inline-block;
vertical-align: middle;
height: 13px;
Expand Down

0 comments on commit 7c88ea6

Please sign in to comment.