materializecss / materialize

Materialize, a web framework based on Material Design
https://materializeweb.com/
MIT License
916 stars 105 forks source link

[Bug]: Color problem when hovering over a link on the dropdown only in the navbar. #385

Open Kam3leoN opened 1 year ago

Kam3leoN commented 1 year ago

Before submitting...

Context

There is a dropdown bug in version 2.0.1alpha to fix, only present in the navigation bar

Current Behavior

The tag is colored according to the selected darkmode theme "green" or "purple" in addition to the "ul" tag slightly lighter than the "li" tag.

Expected behavior

It is necessary that during the selection on hover, that:

Possible Solutions or Causes

The tag is colored according to the selected darkmode theme "green" or "purple" in addition to the "ul" tag slightly lighter than the "li" tag.

Steps to reproduce

No response

Your Environment

MaterializeCSS : 2.0.1 alpha Chrome : Version 114.0.5735.134 (Build officiel) (64 bits) Windows 11 on desktop

Jerit3787 commented 1 year ago

Hi, please do attach a jsfiddle or a screenshot at least to OP.

quillaja commented 5 months ago

I'm not sure if it's related to the OP's bug, but it seems like the navbar isn't respecting the theme color on hover. I'm using v2.1.0 (though I think I had the same issue in 2.0.1) from the CDN. I made a material theme from the theme builder that contains no blue color. Yet the navbar item (li I think) turns a light blue on hover. image

This is a very minimal page, and I haven't made any conflicting styles of my own that would affect color (just some spacing).