FIX: Do not show user tips over composer (#20708)

This commit is contained in:
Bianca Nenciu 2023-03-20 18:17:04 +02:00 committed by GitHub
parent 133ea4cfec
commit fa96569ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@ export function showUserTip(options) {
hideOnClick: false,
trigger: "manual",
theme: "user-tips",
zIndex: "",
// It must be interactive to make buttons work.
interactive: true,
@ -55,6 +56,8 @@ export function showUserTip(options) {
</div>`,
onCreate(instance) {
instance.popper.classList.add("user-tip");
instance.popper
.querySelector(".btn-dismiss")
.addEventListener("click", (event) => {

View File

@ -1,3 +1,7 @@
.user-tip {
z-index: z("composer", "content") - 1;
}
.user-tip-container {
min-width: 300px;
padding: 0.5em;