Bug Type: Component
Environment
- Vue Version:
3.3.4
- Element Plus Version:
2.6.2
- Browser / OS:
Chrome 126.0.6478.127
- Build Tool:
Vite
Reproduction
Related Component
el-tooltip
Reproduction Link
Steps to reproduce
... Dark Light
What is Expected?
the first el-tooltip should display dark style but shows light style.And the second one display an opposite behavior.
What is actually happening?
the first el-tooltip shows light style.
the second one shows dark style.
Additional comments
i think the style should follows what props i offer, the effect="dark" should always be dark style.
you can discover this phenomenon in the official document.
2条答案
按热度按时间wrrgggsh1#
the code fragment should be
wdebmtf22#
i think that is useDark changed global text-color and bg-color ,it might be a bug or call it color relativity? 😂