[Bug Report][2.5.8] Color prop is not working for v-list-item
See original GitHub issueEnvironment
Vuetify Version: 2.5.8 Vue Version: 2.6.14 Browsers: Chrome 93.0.4577.82 OS: Windows 10
Steps to reproduce
- Create some
v-list-item
s withto
prop. - Set the
color
inv-list-item
. - The
color
prop is not working.v-list-item
color is not changed when it is inactive
state.
According to the docs it should change the color, when it is in the active state: https://vuetifyjs.com/en/api/v-list-item/#props-color
Expected Behavior
Color should change to the selected one when v-list-item
is in the active state.
Actual Behavior
Color is not changed from the default one when v-list-item
is in the active state.
Reproduction Link
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Vuetify v-snackbar color attribute is not working - Stack Overflow
Hello I have a question regarding the color attr in the snackbar when I try to set the custom color and apply the...
Read more >v-select API - Vuetify
name type default
#append‑icon string '$dropdown'
#append‑outer‑icon string undefined
#attach any false
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Router-link active doesn’t set
isActive
, the color class was always applied then overridden by:not(.v-list-item--active)
@yuwu9145 Hello, Thanks for your response. Unfortunately your solution has a bug. You can see it on this GIF:
When I have selected “Page 2” and I refreshed the page, the “Page 2” item is not highlighted correctly. This bug can only be reproduced locally. You cannot reproduce it on the CodePen because CodePen does not allow you to refresh the page on a certain URL.