Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions web/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,22 @@ dialog :link {
height: auto;
}
}
/* Show tooltips for keyboard users */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ensure that there is always a newline between sections, so above this comment.

&:focus::after,
&:hover::after {
content: attr(title);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For non-keyboard use, so on hover, this now duplicates the tooltips that the browser already shows up default, and they are on top of each other which doesn't seem like good UX:

Image

position: absolute;
top: 100%;
left: 50%;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't take in account strings that are longer or are at the edge of the viewer, such as the secondary toolbar button in the Dutch locale, which also creates a horizontal scrollbar:

Image

transform: translateX(-50%);
white-space: nowrap;
background: rgb(0 0 0 / 0.8);
color: #fff;
padding: 4px 6px;
border-radius: 4px;
font-size: 12px;
pointer-events: none;
}
}

.toolbarButtonWithContainer {
Expand Down