Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tooltip: Hide tooltip for touch events on touch-enabled devices.
Gaurav Pandey3dcf97bf276c
diff --git a/static/styles/zulip.css b/static/styles/zulip.cssindex 0b150d13982..7cae814f577 100644--- a/static/styles/zulip.css+++ b/static/styles/zulip.css@@ -536,6 +536,23 @@ strong {background-color: hsla(0, 0%, 7%, 0.8);padding: 3px 5px;}++ /*+ Since hover and click are activated together on touchscreen+ devices, the hover state persists until the next click, creating+ awkward UI where the tooltip sticks around forever :(.++ To resolve this, we just hide the tooltip for touch-events on+ touch-enabled devices resolving the above problem. This means+ that tooltips will never appear on touchscreen devices, but that's+ probably a reasoanble tradeoff here.++ Source: https://drafts.csswg.org/mediaqueries-4/#mf-interaction+ */++ @media (hover: none) {+ visibility: hidden !important;+ }}.buddy_list_tooltip_content {