[Discover] Show doc viewer action buttons on focus (#64912)

This commit is contained in:
Caroline Horn 2020-04-30 18:46:07 -04:00 committed by GitHub
parent ffe5166023
commit 8128b91193
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {
@ -51,7 +59,12 @@
.kbnDocViewer__actionButton {
opacity: 0;
&:focus {
opacity: 1;
}
}
.kbnDocViewer__warning {
margin-right: $euiSizeS;
}