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

Navigation Buttons not highlighting on Hover | Darkmode #2860

Open
arno-fukuda opened this issue May 1, 2024 · 0 comments
Open

Navigation Buttons not highlighting on Hover | Darkmode #2860

arno-fukuda opened this issue May 1, 2024 · 0 comments

Comments

@arno-fukuda
Copy link

Screenshot 2024-05-01 at 14 23 13

On dark-mode, the navigation elements don't change color upon hover due to the darkmode css having higher specificity:

:is(html[class~=dark] .dark\:nx-text-gray-300)

Can potentially workaround by using !important here:

.hover\:nx-text-primary-600:hover {
    --tw-text-opacity: 1;
    color: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) 45% / var(--tw-text-opacity)) !important;
}
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

No branches or pull requests

1 participant