Skip to content
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

[Lens] Keyboard-selected items follow user traversal of drop zones #90546

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 31 additions & 5 deletions x-pack/plugins/lens/public/drag_drop/drag_drop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@
transition: background-color $euiAnimSpeedFast ease-in-out, border-color $euiAnimSpeedFast ease-in-out;
}

.lnsDragDrop_ghost {
@include lnsDraggable;
border: $euiBorderWidthThin dashed $euiBorderColor;
position: absolute !important; // sass-lint:disable-line no-important
margin: 0 !important; // sass-lint:disable-line no-important
bottom: 100%;
width: 100%;
left: 0;
opacity: .9;
transform: translate(-12px, 8px);
z-index: $euiZLevel2;
pointer-events: none;
box-shadow: 0 0 0 $euiFocusRingSize $euiFocusRingColor;
}

// Draggable item
.lnsDragDrop-isDraggable {
@include lnsDraggable;
Expand Down Expand Up @@ -65,6 +80,7 @@

.lnsDragDrop__container {
position: relative;
overflow: visible !important; // sass-lint:disable-line no-important
}

.lnsDragDrop__reorderableDrop {
Expand All @@ -87,11 +103,6 @@
z-index: $euiZLevel1;
}

// Draggable item when it is moving
.lnsDragDrop-isHidden {
opacity: 0;
}

.lnsDragDrop__keyboardHandler {
top: 0;
position: absolute;
Expand All @@ -105,3 +116,18 @@
pointer-events: none;
}
}

// Draggable item when it is moving
.lnsDragDrop-isHidden {
opacity: 0;
}

.lnsDragDrop-isHidden-noFocus {
opacity: 0;
.lnsDragDrop__keyboardHandler {
&:focus,
&:focus-within {
animation: none;
}
}
}
Loading