@codecademy/gamut
68.2.268.2.3-alpha.794432.0
dist/PopoverContainer/types.d.ts~
dist/PopoverContainer/types.d.tsModified+5
Index: package/dist/PopoverContainer/types.d.ts
===================================================================
--- package/dist/PopoverContainer/types.d.ts
+++ package/dist/PopoverContainer/types.d.ts
@@ -64,5 +64,10 @@
* If true, the popover will automatically close when the target element moves out of viewport.
* Defaults to false.
*/
closeOnViewportExit?: boolean;
+ /**
+ * Optional props passed to the internal FocusTrap (react-focus-on).
+ * Use e.g. { autoFocus: false, focusLock: false } to keep focus on the trigger when the popover opens.
+ */
+ focusOnProps?: Partial<import('../FocusTrap').FocusTrapProps['focusOnProps']>;
}