Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Increase header icon rule specificity #121

Merged

Conversation

davidtaylorhq
Copy link
Contributor

@davidtaylorhq davidtaylorhq commented Apr 15, 2024

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.

Checklist:

Closes #XXXXX

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.
@davidtaylorhq davidtaylorhq requested a review from a team as a code owner April 15, 2024 12:08
Copy link
Member

@huyenltnguyen huyenltnguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@huyenltnguyen huyenltnguyen merged commit df96cba into freeCodeCamp:main Apr 16, 2024
1 check passed
@raisedadead
Copy link
Member

Hey @davidtaylorhq thanks a lot for these fixes, we at freeCodeCamp appreciate everything you all at Discourse do for us 🙌 - Cheers!

@huyenltnguyen huyenltnguyen mentioned this pull request Apr 18, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants