nrkno / core-components

Accessible and lightweight Javascript components
https://static.nrk.no/core-components/latest/
MIT License
117 stars 10 forks source link

core-dialog: Revisit definition of strict #647

Closed skjalgepalg closed 7 months ago

skjalgepalg commented 2 years ago

Prompted by @nrkno/origo#780

Should attribute strict be reworked? if so, how?

Presently, setting the strict-attribute on a core-dialog is described as:

If set, prevents the dialog from closing on ESC-key and on backdrop click

Is optionally blocking keyboard ESC-key to close a dialog (ever?) a good idea for usability? Is optionally blocking click-events on backdrop useful?

-Do we have use-cases to back either of these restrictions up?