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

fix(safari): use svg icon for toolbar #2284

Merged
merged 1 commit into from
Mar 6, 2025
Merged

fix(safari): use svg icon for toolbar #2284

merged 1 commit into from
Mar 6, 2025

Conversation

smalluban
Copy link
Collaborator

@smalluban smalluban commented Mar 5, 2025

Fixes #2271.

It must be a Safari bug, as I saw a blurry icon of other extensions. Also, it is not well documented, that Safari has started supporting SVG format for a toolbar icon - when creating a new project in Xcode (https://developer.apple.com/documentation/safariservices/creating-a-safari-web-extension) the current default for action icon is SVG image.

I've checked iOS 17.x, iOS 18.x, and Safari 18.x on macOS, and it looks that all of them supports correctly SVG images.

@smalluban smalluban requested a review from chrmod March 5, 2025 15:22
@smalluban smalluban changed the title fix(safari): use svg icon in toolbar fix(safari): use svg icon for toolbar Mar 5, 2025
@smalluban smalluban marked this pull request as draft March 5, 2025 15:28
@smalluban smalluban marked this pull request as ready for review March 6, 2025 08:15
@smalluban
Copy link
Collaborator Author

Safari requires adding a slight border to the inactive icon - I've checked Firefox and Safari on macOS and iOS, and the border is not visible.

@smalluban smalluban merged commit 2482a61 into main Mar 6, 2025
2 checks passed
@smalluban smalluban deleted the fix-safari-icon branch March 6, 2025 09:01
@smalluban smalluban mentioned this pull request Mar 6, 2025
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.

iphone: ghostery icon seems blurry, pls investigate
2 participants