Hacktoberfest / hacktoberfest-2020

Hacktoberfest - App to manage the annual open-source challenge, used for the 2019 & 2020 seasons.
https://hacktoberfest.digitalocean.com
Other
496 stars 147 forks source link

Fix dark mode link color overriding button color #586

Closed j-arens closed 3 years ago

j-arens commented 3 years ago

Description

When viewing the homepage as a logged-out user the "start hacking" button text color should be white when hovered, but instead it's overridden by the color applied to all navigation links when dark-mode is enabled. This makes the contrast between the background-color of the button and the text poor. It also doesn't match the style of similar buttons.

https://share.getcloudapp.com/kpuwQPp1

To fix I added a negation (:not(.button)) to the css that was applying the dark-mode color to all navigation links. This will exclude links which are also buttons.

Test process

Go to the hacktoberfest homepage as a logged out user and enable dark-mode. Hover over the "start hacking" button in the header navigation to see its color.

Requirements to merge