Unable to change dropdown text color in Fomantic 2.8.4 #1367
-
I'm facing this issue only in the latest version - worked fine in 2.7.4. I've written a custom dark mode css in which i change the background color and the text color of the dropdown - which works fine in 2.7.4 So, in the css file i'm targetin the default text class below the ui dropdown and giving it a custom color e.g. red - as said previously, this worked fine until 2.8.4. But with the latest version, i'm not able to change the dropdown color in anyway, event changing it in the dev tool doesn't do anything |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
Could you please post your css snippet where it was working in 2.7.4 but not in 2.8.4 ? .ui.ui.dropdown > .default.text {
color: red;
} See https://jsfiddle.net/m3wfb70s/ Otherwise, when building Fomantic with a separate theme, changing So , please post either your theme settings or the css snippet for better investigation |
Beta Was this translation helpful? Give feedback.
-
Here is my css snippet: body.darkmode .ui.dropdown.default.text { This worked fine in 2.7.4 but is somehow not working in 2.8.4 |
Beta Was this translation helpful? Give feedback.
-
The selector Could you please change the jsfiddle to your individual html code so we can reproduce this? |
Beta Was this translation helpful? Give feedback.
-
I'm not able to reproduce this issue with the fiddle provided since i have a custom darkmode.css whoch changes the color of all kind of controls: Hoverver i can provide you some screenshots: This is how the dropdown looks like with 2.7.4 And this is how the dropdown looks like in 2.8 And this is the css i'm using in my custom darkmode: body.darkmode .ui.modal>.content>.ui.form .field .ui.dropdown input { body.darkmode .ui.modal>.content>.ui.form .field .ui.dropdown.active { body.darkmode .ui.modal>.content>.ui.form .field .ui.dropdown .menu { Also another thing which i discovered... But in 2.8 it looks like this, without changing a single line of code |
Beta Was this translation helpful? Give feedback.
-
Sorry, but without having at least a html snippet and your css variables contents, i cannot replicate and help out. What i guess is that your input fields have a state. Form states were refactored in 2.8 especially regarding background and color. However as you are using I think you should be able to
I adjusted the jsfiddle so the body tag now has the https://jsfiddle.net/na2Lmjbo/ If it's a public accessible website, you could also just post a link 😉 |
Beta Was this translation helpful? Give feedback.
-
Hi! I've just installed two version of the website: please log in with the following credentials: https://kiseni.com/excavationsitemanager - the working version with fomantic 2.7.4 On https://kiseni.com/excavationsitemanager/php/settings.php - you can toggle the darkmode and on https://kiseni.com/excavationsitemanager/PHP/SiteOverview.php you can find the modal if you click the add new button in the top attached menu (the menu which also changed its width, i mentioned in my prev. post. I hope this makes things easier to investigate ! |
Beta Was this translation helpful? Give feedback.
-
@mpgr04 Thanks for the links. I was now able to reproduce and find the reason. body.darkmode .ui.search.dropdown>.text {
z-index: 3;
} |
Beta Was this translation helpful? Give feedback.
-
Thank you for pointing out the issue - i implemented your solution and it worked great! Could you also find out, why the top attached menu changed its width in the newest version as mentioned above? |
Beta Was this translation helpful? Give feedback.
-
It's somehow related to your fixed width. Cannot figure out quickly what it otherwise causing it. To match the width to your specifig usecase change the width from #overviewTableMenu {
/* width: 1090px; */
width: 99.2%;
} |
Beta Was this translation helpful? Give feedback.
-
Hi! |
Beta Was this translation helpful? Give feedback.
@mpgr04 Thanks for the links. I was now able to reproduce and find the reason.
It's related to #1235 which seems the browser is calculating a different z-index when using a dark theme
To fix this for your theme, add the following