Skip to content

Commit

Permalink
FIX: Increase header icon rule specificity (#121)
Browse files Browse the repository at this point in the history
A side effect of the recent header upgrade was to introduce the `.btn` class on the header buttons. That means they are now subject to the `color: inherit` rule on line 557 of this theme's css.

This commit increases the specificity of the header icon selector so that it 'wins' over the more general `color: inherit` rule.

This should fix the icon color problems under the 'day' theme on freecodecamp.
  • Loading branch information
davidtaylorhq authored Apr 16, 2024
1 parent 9d4b853 commit df96cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ body.no-ember {
background-color: $--gray75;
}

.d-header-icons .d-icon {
.d-header-icons .btn .d-icon {
color: $--gray65;
}

Expand Down

0 comments on commit df96cba

Please sign in to comment.