{
};
```
+import { Example } from '@site/src/components';
+
+### Focus management
+
+`EuiFlyout` used with `type="overlay"` manages focus for keyboard navigation and accessibility. This ensures users can navigate modal content effectively,
+especially those using screen readers or keyboard-only navigation.
+
+When a `EuiFlyout` is used, it will automatically:
+
+1. Move focus to the flyout when opened
+2. Trap focus inside the flyout while open
+3. Return focus to the trigger element when closed
+
+#### Manual return focus control
+
+Use `focusTrapProps` to customize the focus behavior:
+
+```tsx
+ {
+ // Return true to use default behavior (focus triggerElement)
+ // Return false to prevent default behavior
+ if (customElement.current) {
+ customElement.current.focus();
+ return false;
+ }
+ return true;
+ },
+ }}
+/>
+```
+
+:::warning Manually return focus when the trigger element is removed
+If the trigger element is removed from the DOM before the flyout closes, focus will be "lost" to the document body.
+In this case, manually return focus to an appropriate element using `focusTrapProps.returnFocus`.
+:::
+
### Push flyout
import PushFlyout from './_flyout_push.mdx';
diff --git a/packages/website/docs/components/containers/modal/index.mdx b/packages/website/docs/components/containers/modal/index.mdx
index e3bc3359a92..8b64bcdc4ee 100644
--- a/packages/website/docs/components/containers/modal/index.mdx
+++ b/packages/website/docs/components/containers/modal/index.mdx
@@ -95,6 +95,44 @@ export default () => {
```
+import { Example } from '@site/src/components';
+
+### Focus management
+
+`EuiModal` manages focus for keyboard navigation and accessibility. This ensures users can navigate modal content effectively,
+especially those using screen readers or keyboard-only navigation.
+
+When a `EuiModal` is used, it will automatically:
+
+1. Move focus to the modal when opened
+2. Trap focus inside the modal while open
+3. Return focus to the trigger element when closed
+
+#### Manual return focus control
+
+Use `focusTrapProps` to customize the focus behavior:
+
+```tsx
+ {
+ // Return true to use default behavior (focus triggerElement)
+ // Return false to prevent default behavior
+ if (customElement.current) {
+ customElement.current.focus();
+ return false;
+ }
+ return true;
+ },
+ }}
+/>
+```
+
+:::warning Manually return focus when the trigger element is removed
+If the trigger element is removed from the DOM before the modal closes, focus will be "lost" to the document body.
+In this case, manually return focus to an appropriate element using `focusTrapProps.returnFocus`.
+:::
+
### Confirm modal
import ConfirmModal from './_confirm_modal.mdx';