-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
Ff133 dialog toggle beforetoggle events #36606
Ff133 dialog toggle beforetoggle events #36606
Conversation
Preview URLs (10 pages)
Flaws (4)Note! 8 documents with no flaws that don't need to be listed. 🎉 URL:
URL:
External URLs (1)URL:
(comment last updated: 2024-11-14 23:31:14) |
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.
Looks good! Thank you :)
I'd suggest removing reversed layout from the demo and reversing the HTML instead. Reversed layout is always a potential accessibility issue. In this case, it also complicates the code for no reason.
Co-authored-by: Vadim Makeev <[email protected]>
Co-authored-by: Vadim Makeev <[email protected]>
Thanks @pepelsbey - I accepted all your suggestions. Note, I didn't consider the example much at all, but you're right it is better this way. |
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.
Nice!
FF133 adds support for
<dialog>
elements to respond toHTMLElement
eventstoggle
andbeforetoggle
.This updates the docs to make it clear:
toggle
fired on details element, dialog element, popoversbeforetoggle
fired on dialog element, popovers (details to follow)HTMLDetailsElement
toggle event page removed as that event is actuallyHTMLElement
toggle
event fired on the details element.Added/updated some examples to make it more clear
One problem is that the events are defined in HTMLElement onto other elements, so they aren't shown as part of those elements in the normal boilerplate - i.e. the list of events. I have mentioned the events in examples.
I have also added BCD entries for the target elements on the events, and will include those as compat data once/if those get accepted.
Related docs work #36536