From dacdec5accb52389ed9214f82627ac2a3950e960 Mon Sep 17 00:00:00 2001 From: Kris Date: Mon, 12 Sep 2022 10:04:20 -0400 Subject: [PATCH] UX: trigger tooltips on click for touch devices (#18198) --- app/assets/javascripts/discourse/app/components/d-tooltip.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/app/components/d-tooltip.js b/app/assets/javascripts/discourse/app/components/d-tooltip.js index 90d654c8333..e462e2d5428 100644 --- a/app/assets/javascripts/discourse/app/components/d-tooltip.js +++ b/app/assets/javascripts/discourse/app/components/d-tooltip.js @@ -26,6 +26,7 @@ export default class DiscourseTooltip extends Component { const parent = viewBounds.parentElement; this._tippyInstance = tippy(parent, { content: element, + trigger: this.capabilities.touch ? "click" : "mouseenter", theme: "d-tooltip", arrow: false, placement: "bottom-start",