wip: picker
co-authored-by: nathan <nathan@zed.dev> co-authored-by: max <max@zed.dev>
This commit is contained in:
parent
3c93b585ab
commit
85000eba81
21 changed files with 460 additions and 278 deletions
|
@ -128,7 +128,7 @@ impl<V: 'static> Checkbox<V> {
|
|||
// click area for the checkbox.
|
||||
.size_5()
|
||||
// Because we've enlarged the click area, we need to create a
|
||||
// `group` to pass down interaction events to the checkbox.
|
||||
// `group` to pass down interactivity events to the checkbox.
|
||||
.group(group_id.clone())
|
||||
.child(
|
||||
div()
|
||||
|
@ -148,7 +148,7 @@ impl<V: 'static> Checkbox<V> {
|
|||
.bg(bg_color)
|
||||
.border()
|
||||
.border_color(border_color)
|
||||
// We only want the interaction states to fire when we
|
||||
// We only want the interactivity states to fire when we
|
||||
// are in a checkbox that isn't disabled.
|
||||
.when(!self.disabled, |this| {
|
||||
// Here instead of `hover()` we use `group_hover()`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue