Skip to content
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

add toggle action to invokers dialog #936

Closed
wants to merge 2 commits into from
Closed

Conversation

keithamus
Copy link
Collaborator

@keithamus keithamus commented Nov 6, 2023

When prototyping/implementing the behaviour for invokers on <dialog>, I noticed that toggle wasn't an action available, only toggleModal.

For completeness and compatibility with non-modal dialogs, I went ahead and implemented toggle, which begs the question: should it exist?

Rather than raising an issue I thought I'd raise a PR for us to speculate on.

One reason to not add this is whatwg/html#9376 - which asks if we should deprecate .show() altogether.

/cc @lukewarlow @mfreed7 @scottaohara

@lukewarlow
Copy link
Collaborator

I think it should exist for completeness. Unless we make it so invokers ONLY work for modal dialogs? Which could be an option?

Also gonna link #920

@lukewarlow
Copy link
Collaborator

Linking #935 discussion

Co-authored-by: Luke Warlow <luke@warlow.dev>
@gregwhitworth
Copy link
Member

@keithamus this PR is almost a year old and I presume outdated? What do you want to do with it?

@keithamus
Copy link
Collaborator Author

This can be closed as the current explainer includes this.

@keithamus keithamus closed this Sep 30, 2024
@keithamus keithamus deleted the patch-1 branch September 30, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants