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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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>
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.

None yet

2 participants