Investigate using the dialog element and popover attribute in existing components.
Acceptance Criteria
Applicable components would use the popover attribute and dialog element. This would solve issues where z-index stacking can conflict. Since these two HTML api's will place the element above any other element, we wouldn't need to manage that z-index stacking any longer.
This may also affect the internal use of the scrim component. Since both the dialog element and popover attribute provide a ::backdrop pseudo element where styling can be provided. The scrim component would no longer be necessary to use internally in many of these components. https://developer.mozilla.org/en-US/docs/Web/CSS/::backdrop
Check existing issues
Description
Investigate using the dialog element and popover attribute in existing components.
Acceptance Criteria
Applicable components would use the popover attribute and dialog element. This would solve issues where z-index stacking can conflict. Since these two HTML api's will place the element above any other element, we wouldn't need to manage that z-index stacking any longer.
This may also affect the internal use of the scrim component. Since both the dialog element and popover attribute provide a
::backdrop
pseudo element where styling can be provided. The scrim component would no longer be necessary to use internally in many of these components. https://developer.mozilla.org/en-US/docs/Web/CSS/::backdropRelevant Info
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover
All of these tokens could be deprecated:
I think these tokens could be modified to be:
cc @alisonailea
Which Component
Example Use Case
https://blog.logrocket.com/comparing-popover-api-dialog-element/ https://hidde.blog/dialog-modal-popover-differences/ https://frontendmasters.com/blog/menus-toasts-and-more/ https://levelup.gitconnected.com/dialogs-vs-popovers-understanding-the-key-differences-8919d5be0fcc https://www.oidaisdes.org/native-dialog-and-popover.en/
Priority impact
impact - p3 - not time sensitive
Calcite package
Esri team
N/A