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.
[EuiPortal] Allow
insert
prop to be configured via `EuiProvider.com…
…ponentDefaults` (elastic#6941) * [EuiPortal] Add global settings for Portal-Based Components * changelog * Remove `PortalProvider` usage in favor of `EuiComponentDefaultsProvider` Update EuiPortal component - update class naming to match other instances in EUI for consistency (e.g. EuiAccordionClass) - update function component typing and syntax - minor object spread syntax nit * Add EuiPortal tests for provided `insert` behavior - has to be Cypress, as our current version of jest/jsdom does not support `insertAdjacentElement` + clarify in comments of the new provider test how individual component tests should be handled * changelog * Clean up types - not super necessary to have a separate file for it, these types are only used within EuiPortal - use `as const` array and typeof instead of `keyof` - simplify insert positions map typing --------- Co-authored-by: y1j2x34 <[email protected]>
- Loading branch information
Showing
4 changed files
with
101 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- `EuiPortal`'s `insert` prop can now be configured globally via `EuiProvider.componentDefaults` |