Skip to content

Commit 0c2d119

Browse files
authored
Merge pull request #5672 from magdapoppins/tooltip-style-scope-fix
Tooltip style scope fix
2 parents 498b0bc + 22b40c0 commit 0c2d119

File tree

1 file changed

+26
-41
lines changed

1 file changed

+26
-41
lines changed

notebook/static/tree/less/tree.less

Lines changed: 26 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -414,46 +414,31 @@ ul#new-menu {
414414
}
415415

416416
//TO show tooltips via keyboard for"Duplicate","View","Rename", "Download", "Shutdown", "Edit","Move", "Delete" buttons.
417+
.dynamic-buttons {
418+
button:focus + [role="tooltip"] {
419+
visibility: visible;
420+
opacity: 1;
421+
}
417422

418-
.visually-hidden {
419-
clip-path: inset(100%);
420-
clip: rect(1px, 1px, 1px, 1px);
421-
height: 1px;
422-
overflow: hidden;
423-
position: absolute;
424-
white-space: nowrap;
425-
width: 1px;
426-
}
427-
428-
button:focus + [role="tooltip"] {
429-
visibility: visible;
430-
opacity: 1;
431-
}
432-
433-
.button-and-tooltip {
434-
position: relative;
435-
display: inline-block;
436-
}
437-
438-
[role="tooltip"] {
439-
/* Position the tooltip */
440-
position: absolute;
441-
top:70%;
442-
display:inline;
443-
//--------------
444-
visibility: hidden;
445-
width: 100px;
446-
background-color: #F0EFEF;
447-
color: #080808;
448-
text-align: center;
449-
padding: 3px;
450-
outline-color: grey;
451-
outline-offset: -2px;
452-
outline-style: auto;
453-
outline-width:1px;
454-
z-index: 1;
455-
opacity: 0;
456-
transition: opacity .6s;
457-
margin: 3px;
458-
font-size:10px;
423+
[role="tooltip"] {
424+
/* Position the tooltip */
425+
position: absolute;
426+
top:70%;
427+
display:inline;
428+
//--------------
429+
visibility: hidden;
430+
background-color: #F0EFEF;
431+
color: #080808;
432+
text-align: center;
433+
padding: 3px;
434+
outline-color: grey;
435+
outline-offset: -2px;
436+
outline-style: auto;
437+
outline-width:1px;
438+
z-index: 1;
439+
opacity: 0;
440+
transition: opacity .6s;
441+
margin: 3px;
442+
font-size:10px;
443+
}
459444
}

0 commit comments

Comments
 (0)