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 the icon illustration in the tutorial based on browser #126

Merged
merged 2 commits into from
Mar 21, 2021

Conversation

sharon-wang
Copy link
Member

@sharon-wang sharon-wang commented Mar 21, 2021

In Firefox, browser extension badges look a bit different and are located in the top right of the icon. Edge also has a slightly different look.

This adds new illustrations that better portray the icons in Firefox and Edge, and sets the illustration shown in the tutorial based on if the browser type. Browser detection is now done by checking the user agent string.

Fixes: #55.

In Firefox, browser extension badges look a bit different and are
located in the top right of the icon. This adds new illustrations
that better portray the icon in Firefox and sets the illustration
shown in the tutorial based on if the browser is Chromium (default)
or Firefox.

Signed-off-by: sharon-wang <[email protected]>
@sharon-wang sharon-wang requested a review from vezwork March 21, 2021 03:46
@vezwork
Copy link
Member

vezwork commented Mar 21, 2021

Tested in Chrome, Firefox, and Edge. Firefox has a custom image now as expected, looks great :)

@sharon-wang
Copy link
Member Author

@vezwork Added illustration for Edge as well. Pls review

Copy link
Member

@vezwork vezwork left a comment

Choose a reason for hiding this comment

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

code lgtm and tested on chrome, firefox, and edge!

@vezwork vezwork merged commit 5ba2fa6 into esse-dev:master Mar 21, 2021
@sharon-wang sharon-wang deleted the tutorialiconfirefox branch April 4, 2021 18:50
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.

Make tutorial demo image match the extension badge based on user's browser
2 participants