A platform for community discussion. Free, open, simple.
UX: trigger tooltips on click for touch devices (#18198)
Krisdacdec5accb5
diff --git a/app/assets/javascripts/discourse/app/components/d-tooltip.js b/app/assets/javascripts/discourse/app/components/d-tooltip.jsindex 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",