Git · rows draw their focus ring; row actions show while the keyboard is on them
This commit is contained in:
6 files changed
+21
-1
No files matched your search
+6
-1
@@ -227,6 +227,8 @@ pub(super) fn listed(
|
||||
.aria_label(pick.spoken)
|
||||
.aria_selected(pick.selected)
|
||||
.tab_index(0)
|
||||
.border_1()
|
||||
.border_color(gpui::transparent_black())
|
||||
.focus_ring(cx)
|
||||
.cursor_pointer()
|
||||
.when(pick.selected, |row| row.bg(colors.selection))
|
||||
@@ -280,9 +282,12 @@ pub(super) fn listed(
|
||||
)
|
||||
}),
|
||||
)
|
||||
// On hover the actions take the words' place.
|
||||
// Hover or keyboard focus shows the actions.
|
||||
.child(
|
||||
div()
|
||||
.id("actions")
|
||||
.focusable()
|
||||
.in_focus(|actions| actions.opacity(1.))
|
||||
.absolute()
|
||||
.top_0p5()
|
||||
.right_1()
|
||||
|
||||
Reference in new issue
Block a user