ankurrsinghal / svelte-legos

A framework for Svelte Utilities 💡 Current status: 87 utilities.
https://svelte-legos.surge.sh
MIT License
804 stars 29 forks source link

messageStore shows message behind html <dialog> element #90

Closed levinhtin closed 1 year ago

levinhtin commented 1 year ago

When the html Dialog is opening, and call method messageStore("test", "success") The message is displayed behind

Screenshot 2023-06-12 at 11 36 00
ankurrsinghal commented 1 year ago

Thanks for reporting this @levinhtin, let me check this out. 🙂

LeoCaprile commented 1 year ago

looks like a z-index problem, maybe the dialog has a very high z-index? can you change it? @levinhtin

levinhtin commented 1 year ago

Yes, we can not set z-index with <dialog>

LeoCaprile commented 1 year ago

Yes, we can not set z-index with

I think you can use z-index but the messageStore element has a z-index: 9999, if the z-index of the dialog is below that number I think could work ok.