Skip to content

Commit

Permalink
[nnbd_migration] use animation/delay to make tooltips easier to use
Browse files Browse the repository at this point in the history
Change-Id: I7c32a091952b221037abcdb27b803834678219aa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127487
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Auto-Submit: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
  • Loading branch information
MichaelRFairhurst authored and commit-bot@chromium.org committed Dec 6, 2019
1 parent afdc8ca commit 7075032
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ h2 {
white-space: normal;
width: 400px;
z-index: 1;
opacity: 0%;
transition: visibility 0s linear 500ms, opacity 200ms ease 300ms;
}
.region .tooltip > * {
Expand All @@ -199,16 +201,8 @@ h2 {
.region:hover .tooltip {
visibility: visible;
}
.region .tooltip::after {
/* Make a larger hover target once the tooltip appears. */
content: '';
position: absolute;
top: -1em;
height: 2em;
left: -1ch;
width: 3ch;
opacity: 100%;
transition: opacity 150ms;
}
.nav {
Expand Down

0 comments on commit 7075032

Please sign in to comment.