-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Make Selectable Treeview look and behave the same as Select #7475
Comments
It's little bit different in 2.0, but
Because you open the subtree when click the label. But I'd remove the pointer cursor on tree leaves as click on the leaf label does nothing (at least when
Agreed, in treeview looks too big imho
48px height doesn't look bad and might be better for mobiles in terms of accessibility, we could also add
Agreed, should be same, actually imho it's too dark for v-list (opacity: 0.2 while in most places we're using opacity: 0.12)
Agreed, could be both ripple for the whole item as well as the checkbox (the exact behaviour may depend on some props like With few changes in css both could look like this (it's not a fully working demo): |
I've added PR with some proposed changes, the difference between treeview and list hover background color should be covered in #7519 |
Your speed is amazing, man. Didn't expect that my proposal will be heard and implemented so quick.
I would rather do select/deselect when clicking on a leaf label (the user does know if it is a leaf or not a leaf. If a user clicks on a leaf, he does it on purpose, he expects it to be selected/deselected), or at least have a configuration option to be able to do it.
Agree, but the 34px height in Treeview is too low and I think it should be consistent with Select - either 48px or densed 40px
In my application I also implemented required css changes and also select/deselect when clicking on a leaf node, so that Select and Treeview have the same look and feel. |
This is something that I'd consider as a useful feature, but let's try to minimize a number of changes per issue/PR. So please create a separate issue for each problem that is not solved by one of these 2 mentioned PRs (#7518 fixes spacing/sizing/font-size, also adds dense prop and text overflowing, #7519 unifies the background color of hovered/selected item) |
Sure. Here is the issue for clickable labels #7523 |
BREAKING: Must now use the dense prop to get previous styling * fix(VTreeview): line-height, text-overflow, spacing * fix(VTreeview): layout with append/prepend icons * docs(VTreeview): dense mode example * test(VTreeview): added dense snapshot * fix(VTreeview): rtl issue fixes #7475
CSS issues fixed by #7518 |
Problem to solve
It's possible to use Treeview component as a select component with checkboxes to select some values from a tree.
The problem is that Treeview looks and behave differently compared to Select component.
If your form contains both normal Select component and selectable Treeview, than the user has a mixed user experience:
Compare https://codepen.io/alexeime/pen/EBaLeg and https://codepen.io/alexeime/pen/rEaoaE?&editable=true&editors=101
Select Component
Selectable Treeview Component
Proposed solution
Make selectable Treeview look and behave the same as Select component
The text was updated successfully, but these errors were encountered: