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

Set outlineStyle instead of outline when preventing outline #8917

Merged
merged 1 commit into from Apr 12, 2023

Conversation

jonkoops
Copy link
Collaborator

Changes the implementation of preventOutline() and restoreOutline() so that outline-style is set rather than the whole outline property. This seems to prevent a regression introduced in Safari 16.4, and remains functional in other browsers.

Closes #8908

@jonkoops jonkoops self-assigned this Apr 12, 2023
Copy link
Member

@Falke-Design Falke-Design left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me. Did you test if the outline is still removed correctly in chrome / firefox?

@jonkoops
Copy link
Collaborator Author

Yes, I tested this manually in the latest versions of Chrome, Firefox and Safari. They all seem to have the expected behavior.

@jonkoops jonkoops merged commit fd0fed2 into Leaflet:main Apr 12, 2023
17 checks passed
@jonkoops jonkoops deleted the fix-safari-outline branch April 12, 2023 21:14
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.

Safari 16.4 preventOutline / tests not working anymore
2 participants