forked from elastic/eui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EuiFocusTrap] Allow
gapMode
and crossFrame
props to be configure…
…d via `EuiProvider.componentDefaults` (elastic#6942) * [cleanup] Fix EuiFocusTrap's props / props table - it's kind of a dumpster fire right now with many props not being picked up so I'm wholesale rearranging many things - storybook props/controls also throws its own special brand of fun into this * [cleanup] Update existing Storybook stories to account for new props controls - we can remove the specified `crossFrame` arg now that it actually exists as a prop - default `returnFocus` to a boolean, since it can also take a function - add an `onDeactivation` state update (useful when testing `clickOutsideDisables=true`) * [cleanup] Remove skipped focus trap Jest tests - these were already converted to Cypress tests, so there's no point / no need to keep them * [cleanup] Convert Jest tests to RTL + add a `shouldRenderCustomStyles` to confirm that react-focus-on accepts className/css/style props * Configure `EuiFocusTrap` to accept component defaults * Add Cypress test for `gapMode` * Add Storybook story for `crossFrame` & misc EuiProvider QA * changelog
- Loading branch information
Showing
7 changed files
with
130 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.