Thoughts on using dialog element? #2131
Replies: 2 comments 4 replies
-
Whilst I think the biggest issue would be overall system cohesion, as at the moment all the relevant primitives are based on the same underlying system to ensure correct layering, etc. In a way, I feel like they should give use lower-level primitives like access to the "top-layer" promotion mechanism that the Other concerns are around flexibility around styling, for example the ability to have a scrollable dialog where the outer is scrollable (this can be achieved by nesting the So all in all, perhaps something we can look at when it matures a bit more, but I don't see it being replaced in the short term. |
Beta Was this translation helpful? Give feedback.
-
Just curious if anyone has any thoughts on converting some things like modal, tooltip, dialog to the native HTML dialog element.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
Looks like there isn't acceptable browser support, but there is a polyfill.
https://github.com/GoogleChrome/dialog-polyfill
I'm not advocating for this as much as I'm trying to understand the decision-making process for these kinds of changes.
Beta Was this translation helpful? Give feedback.
All reactions