Fixes focus state issue around EUI combo boxes in kibana (#33073) (#33174)

This commit is contained in:
dave.snider@gmail.com 2019-03-13 23:03:38 -07:00 committed by GitHub
parent da81772bb8
commit e196cb126e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 10 deletions

View file

@ -1,11 +1,3 @@
// We apply brute force focus states to anything not coming from Eui
// which has focus states designed at the component level.
:focus {
&:not([class^="eui"]) {
@include euiFocusRing;
}
}
/**
* 1. Required for IE11.
*/

View file

@ -108,10 +108,22 @@ input[type="checkbox"],
font-size: $euiFontSizeS;
}
// EUITODO: Move to EUI to ensure this doesn't happen elsewhere
// We apply brute force focus states to anything not coming from Eui
// which has focus states designed at the component level.
// You can also use "kbn-resetFocusState" to not apply the default focus
// state. This is useful when you've already hand crafted your own
// focus states in Kibana.
:focus {
&:not([class^="eui"]):not([class^="kbn-resetFocusState"]) {
@include euiFocusRing;
}
}
// A neccessary hack so that the above focus policy doesn't polute some EUI
// entrenched inputs.
.euiComboBox {
input:focus {
box-shadow: none;
animation: none !important;
}
}