Semantic-Org / Semantic-UI

Semantic is a UI component framework based around useful principles from natural language.
http://www.semantic-ui.com
MIT License
51.07k stars 4.96k forks source link

Inverted flag doesn't work for a Dropdown inside a Menu #7079

Open kiranjoshy123 opened 2 years ago

kiranjoshy123 commented 2 years ago

✖ USAGE QUESTIONS → Use these dedicated resources: Docs - http://www.semantic-ui.com Chat - https://gitter.im/Semantic-Org/Semantic-UI SO - https://stackoverflow.com/questions/tagged/semantic-ui?sort=votes

✔ Enhancements → Be specific. Assume backwards compatibility is a necessity. Suggest implementation when possible. ✔ BUGS → ❤❤❤. Keep in mind some bugs may not be immediately fixable due to backwards compatibility or CSS limitations.

DropDown component inside a Menu component should change to DarkMode when inverted flag is set.

i.e. When a DropDown is created inside a Menu component, 'inverted' flag doesn't works.

Steps

Any workaround possible ?

Expected Result

The Dropdown color changes to dark.

Actual Result

The Dropdown color is still white.

Version

x.y.z

Testcase

[Fork, update, and replace to show the bug]: https://jsfiddle.net/ca0rovs3/

lubber-de commented 2 years ago

You can try to use the CSS from the community fork Fomantic-UI where an inverted menu inside a non inverted dropdown is supported. See https://fomantic-ui.com/modules/dropdown.html#inverted image