aria-practices icon indicating copy to clipboard operation
aria-practices copied to clipboard

Having a inline confirm popup alert/dialog on a menu item

Open philpil opened this issue 1 year ago • 2 comments

Can you provide a pattern form when a menuItem is pressed but it has a confirm popup (with arrow pointed to origin item) what should happen.

From what I have found there is no set in stone pattern for keeping both items in focus so the reader can see the confirm is for the item that was selected and then they have the choice to confirm and close both or cancel and go back to them menu

https://w3c.github.io/aria/#aria-owns The menu item can own the confirm dialog so they both stay in focus

https://w3c.github.io/aria/#aria-haspopup

Menu item can also have haspopup - of type dialog so it follows the rules of the menuItem remaining activate

philpil avatar Sep 06 '24 14:09 philpil

Hi @philpil

I'm having a hard time understanding the pattern and use case you are asking about. Would this be like an action menu for the selected file in a list of files where the menu includes a delete action and activating delete opens a confirmation prompt?

mcking65 avatar Sep 10 '24 13:09 mcking65

Possibly the same as that, is there a link to an example ?

philpil avatar Sep 10 '24 13:09 philpil