UX: trigger tooltips on click for touch devices (#18198)

This commit is contained in:
Kris 2022-09-12 10:04:20 -04:00 committed by GitHub
parent 761864d4f4
commit dacdec5acc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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",