Skip to content

Add closedby attribute #574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
scottaohara opened this issue Jan 27, 2025 · 4 comments
Open

Add closedby attribute #574

scottaohara opened this issue Jan 27, 2025 · 4 comments

Comments

@scottaohara
Copy link
Member

HTML recently landed the closedby attribute which can be used to light dismiss dialogs, or indicate that a dialog is not meant to be closed by user action (hitting esc key) until a specific task has been completed.

Filing this issue as a task to add this to the attributes table of HTML AAM, and also to get the group's opinions on whether there is some sort of mapping that might be useful to add here / potentially as an aria-* attribute - indicating that a dialog has these variant behaviors.

@cookiecrook
Copy link
Collaborator

@scottaohara
Copy link
Member Author

Thank you for adding the spec link

@cookiecrook
Copy link
Collaborator

@scottaohara
Copy link
Member Author

thank you for filing that issue @cookiecrook - i was just talking about this with @rahimabdi and thinking that this could in the direction you indicated in the issue. That it would be nice if something could be surfaced to AT so they could decide whether to provide messaging to their users that:

  • esc key will not close this dialog closedby=none
  • clicking outside the dialog can close the dialog closedby=any

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants