This has been discussed in #8436
I know that this is according to MD2 specification but I assume many users would like to have this configurable.
It's ok if by default this is left as-is at the moment (as per MD2 specs) but option to disable it would be greatly appreciated.
Add prop to disable this behavior.
Actually this might be a reason for me to rollback to Vuetify 1.5 version, as it appears to bring a really bad user experience 馃樋
I use it globally
.v-btn:hover:before {
opacity: 0 !important;
}
Adding this prop would also fix another related bug unexpected tooltips
:
This prop should definitely be true
by default.
I have no idea why would anyone want to:
This is something we have discussed and want to implement. Shooting for v2.1
The default v1.5 behavior has been added back with a new prop retain-focus-on-click which has a default value of false
. Closing as this is considered resolved.
To stop seemingly random highlighting of v-btn on iOS, I used javascript to detect a mobile device and assign classes using :hover to desktop and :active to mobile. This fixed the problem of the hover style being assigned incorrectly on iOS. Then altering the .v-btn:before style hides the default gray color of highlighted buttons.
I'm not sure why I had to do this. Everything was fine on Chrome dev tools, even in mobile preview, but on actual phones, buttons were sometimes rendering as having focus or selection. Adding a :key to force creation of a new component each time props changed helped, but not 100%. (The component displays multiple v-btns. It is reused with new props each time one of the buttons is clicked.)
.qbutton:hover {
background-color: blue;
color: white;
}
.mobile-qbutton:active {
background-color: blue;
color: white;
}
.v-btn:before {
background-color: transparent !important;
}
.qbutton:focus, .mobile-qbutton:focus {
background-color: blue;
color: white;
}
Most helpful comment
I use it globally