Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix(react-popover): Only apply modal attributes if the PopoverSurface traps focus.",
"packageName": "@fluentui/react-popover",
"email": "esteban.230@hotmail.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const usePopoverSurface_unstable = (
ref: useMergedRefs(ref, contentRef),
role: trapFocus ? 'dialog' : 'group',
'aria-modal': trapFocus ? true : undefined,
...modalAttributes,
...(trapFocus ? modalAttributes : {}),
Comment thread
ling1726 marked this conversation as resolved.
Outdated
...props,
}),
};
Expand Down