Skip to content

Commit

Permalink
[Discover] Show doc viewer action buttons on focus
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos committed Apr 30, 2020
1 parent d75328c commit 2ad073c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/plugins/discover/public/components/doc_viewer/_doc_viewer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@
}
.kbnDocViewer__buttons {
width: 60px;

// Show all icons if one is focused,
// IE doesn't support, but the fallback is just the focused button becomes visible
&:focus-within {
.kbnDocViewer__actionButton {
opacity: 1;
}
}
}

.kbnDocViewer__field {
Expand All @@ -51,7 +59,12 @@

.kbnDocViewer__actionButton {
opacity: 0;

&:focus {
opacity: 1;
}
}

.kbnDocViewer__warning {
margin-right: $euiSizeS;
}
Expand Down

0 comments on commit 2ad073c

Please sign in to comment.