Skip to content

Update focus-trap to v8.2.1#1912

Merged
stefcameron merged 2 commits into
masterfrom
ft-821
May 16, 2026
Merged

Update focus-trap to v8.2.1#1912
stefcameron merged 2 commits into
masterfrom
ft-821

Conversation

@stefcameron
Copy link
Copy Markdown
Member

@stefcameron stefcameron commented May 16, 2026

PR Checklist

Please leave this checklist in your PR.

  • Issue being fixed is referenced.
  • Source changes maintain:
    • Stated browser compatibility.
    • Stated React compatibility.
  • Web APIs introduced have deep browser coverage, including Safari (often very late to adopt new APIs).
  • Unit test coverage added/updated.
  • E2E test coverage added/updated.
  • Prop-types added/updated.
  • Typings added/updated.
  • Changes do not break SSR:
    • Careful to test typeof document/window !== 'undefined' before using it in code that gets executed on load.
  • README updated (API changes, instructions, etc.).
  • Changes to dependencies explained.
  • Changeset added (run npm run changeset locally to add one, and follow the prompts).
    • EXCEPTION: A Changeset is not required if the change does not affect any of the source files that produce the package bundle. For example, demo changes, tooling changes, test updates, or a new dev-only dependency to run tests more efficiently should not have a Changeset since it will not affect package consumers.

Summary by CodeRabbit

  • New Features
    • Added delayReturnFocus option for customizable control over focus restoration timing.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 16, 2026

🦋 Changeset detected

Latest commit: b744c8e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
focus-trap-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 16, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 724b7980-3963-4168-bc82-a2936b6f6b0e

📥 Commits

Reviewing files that changed from the base of the PR and between 24cb9fa and b744c8e.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • .changeset/giant-houses-roll.md
  • package.json

Walkthrough

This PR updates the focus-trap dependency from ^8.1.0 to ^8.2.1 and documents the change via a new Changeset file. The bump introduces a new delayReturnFocus option in the upstream package.

Changes

Dependency Update

Layer / File(s) Summary
focus-trap dependency bump to 8.2.1
package.json, .changeset/giant-houses-roll.md
The focus-trap dependency constraint is updated to ^8.2.1, and a patch-level changeset is created to document the upgrade and the new delayReturnFocus option.

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description includes only the checklist template without any actual PR details, context, or explanation of the dependency update. Add a brief explanation of what's new in focus-trap v8.2.1 (e.g., the delayReturnFocus option) and why this update is important before the checklist.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: updating the focus-trap dependency to version 8.2.1.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ft-821

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@stefcameron stefcameron merged commit 161ec0d into master May 16, 2026
3 checks passed
@stefcameron stefcameron deleted the ft-821 branch May 16, 2026 21:08
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.

1 participant