Skip to content

Commit

Permalink
Bug 1690417 - Show tooltips when a reader mode dropdown is open. r=de…
Browse files Browse the repository at this point in the history
…sktop-theme-reviewers,harry

Don't show the tooltip of the currently open dropdown button
so that the opening of the dropdown popup doesn't look odd.

Differential Revision: https://phabricator.services.mozilla.com/D116956
  • Loading branch information
mathewhodson committed Jun 20, 2021
1 parent 7a99ac3 commit 211b4ae
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions toolkit/themes/shared/aboutReader.css
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,16 @@ body.dark blockquote {
border-radius: 2px;
visibility: hidden;
pointer-events: none;
/* Put above .dropdown .dropdown-popup, which has z-index: 1000. */
z-index: 1001;
}

/* Show the hover tooltip on non-dropdown buttons. */
.button:not(.dropdown-toggle):hover > .hover-label,
.button:not(.dropdown-toggle):-moz-focusring > .hover-label,
/* Show the hover tooltip for dropdown buttons unless dropdowns are open. */
:not(.dropdown-open) > .dropdown > li > .button:hover > .hover-label,
:not(.dropdown-open) > .dropdown > li > .button:-moz-focusring > .hover-label {
/* Show the hover tooltip for dropdown buttons unless its dropdown is open. */
:not(.open) > li > .dropdown-toggle:hover > .hover-label,
:not(.open) > li > .dropdown-toggle:-moz-focusring > .hover-label {
visibility: visible;
}

Expand Down

0 comments on commit 211b4ae

Please sign in to comment.