Skip to content

Commit f26cca5

Browse files
authored
Add aria-hidden to DialogBackdrop component (#3310)
* add `aria-hidden` to `DialogBackdrop` * update changelog
1 parent 07ba551 commit f26cca5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@headlessui-react/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Add ability to render multiple `Dialog` components at once (without nesting them) ([#3242](https://github.com/tailwindlabs/headlessui/pull/3242))
1313
- Add CSS based transitions using `data-*` attributes ([#3273](https://github.com/tailwindlabs/headlessui/pull/3273), [#3285](https://github.com/tailwindlabs/headlessui/pull/3285))
1414
- Add `transition` prop to `Dialog`, `DialogBackdrop` and `DialogPanel` components ([#3307](https://github.com/tailwindlabs/headlessui/pull/3307), [#3309](https://github.com/tailwindlabs/headlessui/pull/3309))
15-
- Add `DialogBackdrop` component ([#3307](https://github.com/tailwindlabs/headlessui/pull/3307))
15+
- Add `DialogBackdrop` component ([#3307](https://github.com/tailwindlabs/headlessui/pull/3307), [#3310](https://github.com/tailwindlabs/headlessui/pull/3310))
1616
- Add `PopoverBackdrop` component to replace `PopoverOverlay` ([#3308](https://github.com/tailwindlabs/headlessui/pull/3308))
1717

1818
### Fixed

packages/@headlessui-react/src/components/dialog/dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ function BackdropFn<TTag extends ElementType = typeof DEFAULT_BACKDROP_TAG>(
483483
[dialogState]
484484
)
485485

486-
let ourProps = { ref }
486+
let ourProps = { ref, 'aria-hidden': true }
487487

488488
let Wrapper = transition ? TransitionChild : Fragment
489489

0 commit comments

Comments
 (0)