Skip to content

Commit

Permalink
Merge pull request #10 from ryankeairns/cleanup/search
Browse files Browse the repository at this point in the history
Animate width
  • Loading branch information
snide authored Dec 7, 2020
2 parents 78e0464 + 8cd804d commit d5126c1
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
//TODO add these overrides to EUI so that search behaves the same globally
.kbnSearchBar {
width: 600px;
width: 400px;
max-width: 100%;
will-change: width;

&:focus {
animation: kbnAnimateSearchBar $euiAnimSpeedFast forwards;
}
}

@keyframes kbnAnimateSearchBar {
from {
width: 400px;
}
to {
width: 600px;
}
}

0 comments on commit d5126c1

Please sign in to comment.