Skip to content

Editorial review: Document the ToggleEvent.source property#40533

Merged
chrisdavidmills merged 6 commits into
mdn:mainfrom
chrisdavidmills:toggleevent-source
Aug 5, 2025
Merged

Editorial review: Document the ToggleEvent.source property#40533
chrisdavidmills merged 6 commits into
mdn:mainfrom
chrisdavidmills:toggleevent-source

Conversation

@chrisdavidmills

@chrisdavidmills chrisdavidmills commented Jul 25, 2025

Copy link
Copy Markdown
Contributor

Description

Chrome 140 adds support for the ToggleEvent.source property. See #39723 for details.

This PR adds documentation for the new property.

Motivation

Additional details

Related issues and pull requests

Fixes #39723.

@chrisdavidmills chrisdavidmills requested a review from a team as a code owner July 25, 2025 16:24
@chrisdavidmills chrisdavidmills requested review from sideshowbarker and removed request for a team July 25, 2025 16:24
@github-actions github-actions Bot added the Content:WebAPI Web API docs label Jul 25, 2025
@chrisdavidmills chrisdavidmills changed the title Document the ToggleEvent.source property Technical review: Document the ToggleEvent.source property Jul 25, 2025
@chrisdavidmills chrisdavidmills removed the request for review from sideshowbarker July 25, 2025 16:25
@github-actions github-actions Bot added the size/m [PR only] 51-500 LoC changed label Jul 25, 2025
@github-actions

github-actions Bot commented Jul 25, 2025

Copy link
Copy Markdown
Contributor

Preview URLs

(comment last updated: 2025-08-05 09:14:34)

@chrisdavidmills

Copy link
Copy Markdown
Contributor Author

Can I get a tech review, please, @josepharhar?

I'm on vacation for a week next week, so there might be a bit of a delay getting it merged.

@josepharhar josepharhar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for writing this!

Comment thread files/en-us/web/api/toggleevent/index.md
Comment thread files/en-us/web/api/toggleevent/source/index.md Outdated
Comment thread files/en-us/web/api/toggleevent/source/index.md Outdated
@chrisdavidmills

Copy link
Copy Markdown
Contributor Author

Thanks for the review, @josepharhar! I think I've fixed everything, but let me know if you have any more concerns. I'll move this on to the editorial review stage now.

@chrisdavidmills chrisdavidmills changed the title Technical review: Document the ToggleEvent.source property Editorial review: Document the ToggleEvent.source property Aug 3, 2025
@chrisdavidmills

Copy link
Copy Markdown
Contributor Author

@hamishwillee are you OK to give this one an editorial review? I know you've got previous with the popover API.

Comment thread files/en-us/web/api/toggleevent/source/index.md Outdated
Comment thread files/en-us/web/api/toggleevent/source/index.md Outdated
hamishwillee
hamishwillee previously approved these changes Aug 3, 2025

@hamishwillee hamishwillee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments, but it looks good. Does this need to be added to https://developer.mozilla.org/en-US/docs/Web/API/Popover_API/Using

@hamishwillee hamishwillee dismissed their stale review August 3, 2025 23:27

Not quite ready for approval

@chrisdavidmills

Copy link
Copy Markdown
Contributor Author

A few comments, but it looks good. Does this need to be added to https://developer.mozilla.org/en-US/docs/Web/API/Popover_API/Using

@hamishwillee OK, I've added short sections to the "Using..." guide covering the beforetoggle and toggle events and the ToggleEvent object, and the commandfor/command attributes. All of this stuff was missing. I've deliberately kept it fairly short as I don't want it to take over the PR.

Comment thread files/en-us/web/api/toggleevent/source/index.md Outdated
Comment thread files/en-us/web/api/popover_api/using/index.md Outdated

@hamishwillee hamishwillee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisdavidmills - looks good. Thanks for sorting out the using guide as well - I quite like the level you did this at.

One nit, but approving so you can choose to ignore if you like https://github.com/mdn/content/pull/40533/files#r2252790724

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
@chrisdavidmills chrisdavidmills merged commit 303832e into mdn:main Aug 5, 2025
8 checks passed
@chrisdavidmills chrisdavidmills deleted the toggleevent-source branch August 5, 2025 09:22
@chrisdavidmills

Copy link
Copy Markdown
Contributor Author

@chrisdavidmills - looks good. Thanks for sorting out the using guide as well - I quite like the level you did this at.

One nit, but approving so you can choose to ignore if you like https://github.com/mdn/content/pull/40533/files#r2252790724

@hamishwillee superb, thanks for the great review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ToggleEvent.source

4 participants