lion/packages/ui/components/overlays/src
Danny Moerkerke 5b8d655f10
Fix/dialog scroll to top ios (#1957)
* fix: possible fix for iOS focus issue WIP

* chore: added test for elementToFocusAfterHide WIP

* chore: dialog tests for elementToFocusAFterHide

* chore: added test to assert element specified in `elementToFocusAfterHide` config key of lion-dialog is scrolled into the viewport

* chore: - added test to assert that element specified in dialog config key `elementToFocusAfterHide` is not focused when the dialog is closed if the user deliberately moved focus to another element while the dialog was open
       - added changeset

* chore: - removed unneeded button
       - renamed this.__activeElement to this.__activeElementRightBeforeHide in OverlayController.js
       - set this.__activeElementRightBeforeHide to this.contentNode.getRootNode().activeElement instead of document.activeElement

* chore: moved test to assert if element specified in dialog config key elementToFocusAfterHide is in viewport when dialog is closed to OverlayController.test.js

---------

Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
2023-04-13 15:04:23 +02:00
..
configurations fix(ui): prevent infinite tooltip loops 2022-12-15 16:52:02 +01:00
utils fix(ui): [overlays]: enhance adoptStyles fallback and make testable 2023-01-12 11:35:01 +01:00
ArrowMixin.js feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
OverlayController.js Fix/dialog scroll to top ios (#1957) 2023-04-13 15:04:23 +02:00
overlayDocumentStyle.js fix: demos and overlay styles 2022-12-09 15:54:28 +01:00
OverlayMixin.js fix: demos and overlay styles 2022-12-09 15:54:28 +01:00
overlayShadowDomStyle.js fix: demos and overlay styles 2022-12-09 15:54:28 +01:00
OverlaysManager.js fix: demos and overlay styles 2022-12-09 15:54:28 +01:00
singleton.js feat: use dialog element for top layer functionality of all overlays 2022-12-09 15:54:28 +01:00