Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
polymer-ui-icon: dark theme also gets the darker icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Oct 17, 2013
1 parent d930c7e commit a5be309
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion polymer-ui-icon/polymer-ui-icon.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ license that can be found in the LICENSE file.
}

.polymer-ui-light-icon, .polymer-ui-dark-theme {
background-position: -72px 0;
background-position: -24px 0;
}

.polymer-ui-icons {
Expand Down
1 change: 1 addition & 0 deletions polymer-ui-icon/polymer-ui-icon.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
if (themes[theme] === undefined) {
var offset = parseFloat(
getComputedStyle(node).backgroundPosition.split(' ').shift());
console.log('calcThemeOffset', theme, offset)
themes[theme] = offset;
}
return themes[theme];
Expand Down

0 comments on commit a5be309

Please sign in to comment.