Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mapml-viewer / map[is=web-map] to work inside a shadow host / custom element #949

Closed
wants to merge 22 commits into from

Conversation

prushforth
Copy link
Member

No description provided.

AliyanH and others added 22 commits March 9, 2024 22:36
popupTabNavigation.test.js.  Playwright docs say page.click('body') is
discouraged...
layerContextMenuKeyboard and popupTabNavigation, hopefully
getClosest(node,selector)
- change mapml-viewer, web-map to add event listeners to parent host if
element is in a shadow root
getClosest(node,selector)
- change mapml-viewer, web-map to add event listeners to parent host if
element is in a shadow root
Conflicts:
	test/e2e/core/popupTabNavigation.test.js
	test/e2e/elements/mapml-viewer/in-shadow-root.test.js
selector, and which traverses shadow roots.

Remove duplicate getClosest implementations across various custom 
elements, standardize on use of M.getClosest

Use M.getClosest to select ancestor map element and ancestor fullscreen
element.
shadow host if being used inside a custom element.

Add tests for getMapEl(), getLayerEl() across map-extent,map-feature,
map-link, and map-input

Add test for fullscreen map[is=web-map] in shadow host / custom element
@prushforth prushforth closed this Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants