Skip to content

Commit 7075032

Browse files
[nnbd_migration] use animation/delay to make tooltips easier to use
Change-Id: I7c32a091952b221037abcdb27b803834678219aa Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127487 Commit-Queue: Mike Fairhurst <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]> Auto-Submit: Mike Fairhurst <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]>
1 parent afdc8ca commit 7075032

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

pkg/analysis_server/lib/src/edit/nnbd_migration/instrumentation_renderer.dart

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ h2 {
191191
white-space: normal;
192192
width: 400px;
193193
z-index: 1;
194+
opacity: 0%;
195+
transition: visibility 0s linear 500ms, opacity 200ms ease 300ms;
194196
}
195197
196198
.region .tooltip > * {
@@ -199,16 +201,8 @@ h2 {
199201
200202
.region:hover .tooltip {
201203
visibility: visible;
202-
}
203-
204-
.region .tooltip::after {
205-
/* Make a larger hover target once the tooltip appears. */
206-
content: '';
207-
position: absolute;
208-
top: -1em;
209-
height: 2em;
210-
left: -1ch;
211-
width: 3ch;
204+
opacity: 100%;
205+
transition: opacity 150ms;
212206
}
213207
214208
.nav {

0 commit comments

Comments
 (0)