Skip to main content
user_of_figma
Mar 28, 2024 5:19 PM UTC
Question

How to create modal window in plugin UI?

Hello. I am creating modal window. A usual:

  • Some full-screen wrapper with z-index: 9999, position: fixed and so on.
  • And some content inside it

But My inteface is clickable throught modal despite pointer-events: none and z-index. What to do ?

Is it a known problem for plugin inside iframe ?

This topic has been closed for replies.

2 replies

Pavel_Kiselev
Power Member
Mar 28, 2024 9:26 PM UTC

There is a dialog element available, its new and awesome

MDN Web Docs

I used it for my plugin, it works great and doesn’t have accessibility drawbacks

user_of_figma
Mar 31, 2024 6:32 PM UTC

Thanks, Pavel @Pavel_Kiselev