diff --git a/.changeset/curvy-windows-walk.md b/.changeset/curvy-windows-walk.md new file mode 100644 index 00000000000..a48f52895ab --- /dev/null +++ b/.changeset/curvy-windows-walk.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +SelectPanel: Add `role="dialog"` to overlay diff --git a/src/SelectPanel/SelectPanel.tsx b/src/SelectPanel/SelectPanel.tsx index b0d53fc760c..b8604f0a344 100644 --- a/src/SelectPanel/SelectPanel.tsx +++ b/src/SelectPanel/SelectPanel.tsx @@ -152,7 +152,7 @@ export function SelectPanel({ open={open} onOpen={onOpen} onClose={onClose} - overlayProps={overlayProps} + overlayProps={{role: 'dialog', ...overlayProps}} focusTrapSettings={focusTrapSettings} focusZoneSettings={focusZoneSettings} >