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

Declaratively open popovers (and other elements?) on page load #10171

Open
josepharhar opened this issue Feb 29, 2024 · 2 comments
Open

Declaratively open popovers (and other elements?) on page load #10171

josepharhar opened this issue Feb 29, 2024 · 2 comments
Labels
topic: dialog The <dialog> element topic: popover The popover attribute and friends

Comments

@josepharhar
Copy link
Contributor

What is the issue with the HTML Standard?

In the original proposal for the popover attribute, we had a defaultopen attribute which would show the popover declaratively on page load.

We considered renaming it to popoverdefaultopen for popovers, but then decided not to and instead add the defaultopen attribute in a way that can also be supported on dialog and details elements, potentially blocking on removing the open attribute from them: #7785 (comment)

It doesn't seem like we fully came to an agreement on a plan for defaultopen in that thread, but I've gotten feedback that this would be a useful feature and that we should still try to add it.

@mfreed7 @annevk @domenic

@josepharhar josepharhar added topic: dialog The <dialog> element topic: popover The popover attribute and friends labels Feb 29, 2024
@annevk
Copy link
Member

annevk commented Nov 12, 2024

By including dialog do you mean declarative functionality for a by default open modal dialog?

@josepharhar
Copy link
Contributor Author

Yeah I guess dialog is tricky since you can already declaratively open it with the open attribute in non-modal mode, but I think that modal dialogs are used a lot more often that non-modal ones so it would make sense to have a declarative way of opening it modally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: dialog The <dialog> element topic: popover The popover attribute and friends
Development

No branches or pull requests

2 participants