w3c / aria-practices

WAI-ARIA Authoring Practices Guide (APG)
https://www.w3.org/wai/aria/apg/
Other
1.2k stars 325 forks source link

Develop example of non-modal dialog design pattern #102

Open mcking65 opened 7 years ago

patrickhlauke commented 2 years ago

Reviving this topic, as now that the APG has been reorganised, information about non-modial dialogs seems to have practically disappeared. I only see this "in passing" mention in https://www.w3.org/WAI/ARIA/apg/patterns/dialogmodal/

Like non-modal dialogs, modal dialogs contain their tab sequence. That is, Tab and Shift + Tab do not move focus outside the dialog. However, unlike most non-modal dialogs, modal dialogs do not provide means for moving keyboard focus outside the dialog window without closing the dialog.

But of course, this makes little sense since nowhere else is there a mention of non-modal dialogs, unless I missed it.

Related:

https://github.com/w3c/aria-practices/issues/59 https://github.com/w3c/aria-practices/issues/599 https://github.com/w3c/aria-practices/issues/1021

patrickhlauke commented 2 years ago

information about non-modial dialogs seems to have practically disappeared

correction, I just refreshed my memory looking over https://github.com/w3c/aria-practices/issues/599 and it seems that "in passing" mention was also all we got previously. but because it was all in the same document, at least it was a bit more "immediate" to find

patrickhlauke commented 2 years ago

as I was spitballing some ideas on twitter recently:

aardrian commented 2 years ago

@patrickhlauke what do you think about those toast-like messages that also contain interactive bits (more than a dismiss)? This is in my head because I run into projects (which is why I cannot link a pattern) where the team wants to extend existing toast patterns but does not want to use a dialog, resulting in problematic UIs for users.

patrickhlauke commented 2 years ago

@aardrian possibly, yes? but then you get into weird situation where you probably want to shift focus to this message, and even if implemented as a true non-modal dialog, you're cycling focus inside it until the user bails out to the main document with Ctrl+F6. so for keyboard/AT users it'll feel pretty much like a modal, and only for mouse/pointer users it won't. but sure, it's definitely another option, just wondering if it will unblock the client's reluctance to real modal dialogs

nedredmond commented 7 months ago

Here's a practical example @patrickhlauke, though domain-specific to ed tech: a draggable calculator widget over math practice exercises.

I'm working on improving the experience of that exact thing at my ed tech organization and find that there is no consensus on how a non-modal dialog is supposed to work, or what should be the standard hotkey for exiting one. Looks like the jury has been out for many years.

patrickhlauke commented 7 months ago

@nedredmond ah yes, good example. I think in general, most people here are agreed that there are good/valid use cases...it's now a case though of somebody actually putting "pen to paper" so to speak and submitting an actual working demo example for APG to at least have ONE "authoritative" (for how much APG is indeed authoritative) implementation to be able to point to

nedredmond commented 3 months ago

Just throwing out another that is more widely applicable-- corner chat widget, such as with customer service or bot

EDIT:Oh, looks like @patrickhlauke mentioned this 2 years ago... Well, say I wanted to put "pen to paper". Is there any documentation or guidelines on what I need to have in place to be successful?

patrickhlauke commented 2 months ago

8 years later, and we're still in need of a good/representative example in the APG for this