Skip to content

Commit 1e01541

Browse files
DialogPrimitive - Change tabindex of Body to -1 (HDS-4905) (#3316)
Co-authored-by: Lee White <[email protected]>
1 parent 26bc137 commit 1e01541

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/heavy-impalas-call.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@hashicorp/design-system-components": patch
3+
---
4+
5+
<!-- START components/dialog-primitive -->
6+
`DialogPrimitive` - changed `DialogPrimitiveBody` z-index from 0 to -1 to keep it focusable without showing visible focus styles.
7+
<!-- END -->

packages/components/src/components/hds/dialog-primitive/body.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
Copyright (c) HashiCorp, Inc.
33
SPDX-License-Identifier: MPL-2.0
44
}}
5-
<div class="hds-dialog-primitive__body {{@contextualClass}}" tabindex="0" ...attributes>
5+
<div class="hds-dialog-primitive__body {{@contextualClass}}" tabindex="-1" ...attributes>
66
{{yield}}
77
</div>

0 commit comments

Comments
 (0)