-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Add dialog invoker command documentation and example #42506
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
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| ctx.stroke(path2); | ||
| ``` | ||
| ## Specifications |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
| ## Specifications | |
| ## Specifications |
|
Hi maintainers 👋 Could you please review when you get a chance? |
127d279 to
681165f
Compare
|
Preview URLs |
hamishwillee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MUSKANNISHAD I removed all the spurious unrelated commits on path 2d, merged the remainder and rebased. It is best not to mix PRs about different things.
However this is still a bit unreviewable - see line 76. Did you review this locally to see how the changes rendered? Did you move the accessibility section or change it?
I might not get back to this until well in the new year.
This PR improves the documentation by explaining how invoker commands and the button
commandattribute interact with dialogs, and adds a small example demonstrating their usage.The dialog page did not previously explain how invoker commands apply to dialogs, even though this functionality is part of the HTML standard and documented elsewhere. This change helps readers understand how dialogs can be opened and closed using declarative commands without custom JavaScript.
Fixes #42121