]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Add focus state for control bar buttons
authorPierre Ossman <ossman@cendio.se>
Wed, 5 Oct 2016 08:21:47 +0000 (10:21 +0200)
committerPierre Ossman <ossman@cendio.se>
Wed, 18 Oct 2017 13:08:29 +0000 (15:08 +0200)
The focus can now move to the canvas so it is no longer a source of
confusion. It is also important to indicate that they have focus now
that we actually respect it.

app/styles/base.css

index b945456b3a144912cf6065ebe74a80902fd50eba..790837a0f2c6b689bef22abace75a726a28878dd 100644 (file)
@@ -457,11 +457,15 @@ select:active {
   padding-top: 5px;
   padding-bottom: 3px;
 }
-:root:not(.noVNC_touch) .noVNC_button.noVNC_selected:hover {
+/* Android browsers don't properly update hover state if touch events
+ * are intercepted, but focus should be safe to display */
+:root:not(.noVNC_touch) .noVNC_button.noVNC_selected:hover,
+.noVNC_button.noVNC_selected:focus {
   border-color: rgba(0, 0, 0, 0.4);
   background: rgba(0, 0, 0, 0.2);
 }
-:root:not(.noVNC_touch) .noVNC_button:hover {
+:root:not(.noVNC_touch) .noVNC_button:hover,
+.noVNC_button:focus {
   background: rgba(255, 255, 255, 0.2);
 }
 .noVNC_button.noVNC_hidden {