Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/stale-laws-drive.md

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @wethegit/react-modal

## 4.0.0

### Major Changes

- [#154](https://github.com/wethegit/react-modal/pull/154) [`6609cd1`](https://github.com/wethegit/react-modal/commit/6609cd1f32459900365b440c9b308a83d4024403) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Replace the custom modal and focus trap with native `<dialog>` and `showModal()`.

BREAKING: Remove `ModalBackdrop` in favor of the native `::backdrop`. Pass the `dialogRef` returned by `useModal` to `Modal` to synchronize native closing with hook state and focus restoration. `Modal` now renders its children directly inside the dialog, centers them, and handles backdrop clicks internally.

## 3.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wethegit/react-modal",
"version": "3.2.0",
"version": "4.0.0",
"description": "A customizable, accessible modal window component for React projects.",
"files": [
"dist"
Expand Down
Loading