From e775554a07a3cffff4953799c7a3fdba7b6dd188 Mon Sep 17 00:00:00 2001 From: Joren Broekema Date: Thu, 27 Jun 2019 15:53:16 +0200 Subject: [PATCH] chore(overlays): change to API popperConfig to make clear it's Popper.js --- .../docs/OverlaySystemImplementation.md | 2 +- .../overlays/src/LocalOverlayController.js | 26 ++++++++++++------- .../local-overlay-placement.stories.js | 6 ++--- .../overlays/stories/local-overlay.stories.js | 12 ++++++--- .../test/LocalOverlayController.test.js | 18 ++++++------- packages/popup/src/LionPopup.js | 16 ++++++------ packages/popup/stories/index.stories.js | 16 ++++++------ packages/popup/test/lion-popup.test.js | 4 +-- packages/tooltip/src/LionTooltip.js | 2 +- packages/tooltip/stories/index.stories.js | 16 ++++++------ 10 files changed, 66 insertions(+), 52 deletions(-) diff --git a/packages/overlays/docs/OverlaySystemImplementation.md b/packages/overlays/docs/OverlaySystemImplementation.md index 712fca38f..b1f695c6a 100644 --- a/packages/overlays/docs/OverlaySystemImplementation.md +++ b/packages/overlays/docs/OverlaySystemImplementation.md @@ -91,7 +91,7 @@ other overlays, so needed for internals. - sets focus to overlay content(?) - For `isTooltip`: - sets role="tooltip" and aria-labelledby/aria-describedby on the content -- {Object} placementConfig +- {Object} popperConfig - {String} placement - vertical/horizontal position to be supplied to `managePosition`. See https://github.com/ing-bank/lion/pull/61 for current api. Consists of a primary part (where the overlay is located relative from invoker) and secondary alignnment part (how the overlay 'snaps' to the perpendicular boundary of the invoker), separated via '-'. - primary : 'bottom' | 'top' | 'left' | 'right' | 'over' (this means the overlay will be positioned on top of the invoker. Think for instance of a select dropdown that opens a selected option on top of the invoker (default behavior of `