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

Fixes for Dawn Onboarding toast messages #660

Merged
merged 12 commits into from Jan 21, 2021

Conversation

@leuryr
Copy link
Contributor

@leuryr leuryr commented Jan 14, 2021

This PR updates the toast styling to bring it in line with the Dawn Onboarding designs from Zeplin. Also:

  • adds in a missing error message for Step 1 of onboarding
  • adds fix for toast message not clearing after block settings are submitted in step 2 of onboarding
  • adds minor UI fix for misaligned icon

Because this toast component is also used in our Ghostery extension, with its own distinct styling, I added an optional dawnHub boolean prop (false by default) for ToastMessage.jsx, in order to change the styling if the component is coming from Dawn's onboarding.


  • Have you followed the guidelines in CONTRIBUTING.md?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you added an explanation of what your changes do?
  • Does your submission pass tests?
  • Did you lint your code prior to submission?
@leuryr leuryr requested review from wlycdgr and ghostery/extension as code owners Jan 14, 2021
Copy link
Member

@wlycdgr wlycdgr left a comment

One quick one

let dawnToastText = '';
if (dawnHub && toastClass === 'alert') {
dawnToastText = 'Error: ';
} else if (dawnHub && toastClass === 'success') {
dawnToastText = 'Success: ';
}
Comment on lines 30 to 35

This comment has been minimized.

@wlycdgr

wlycdgr Jan 20, 2021
Member

We should make sure this is i18n-friendly

This comment has been minimized.

@leuryr

leuryr Jan 20, 2021
Author Contributor

Ah, absolutely. Fixed! Means less lines of code in ToastMessage.jsx as well, so win-win, haha.

@wlycdgr wlycdgr merged commit 8abda5e into ghostery-browser-intro-hub Jan 21, 2021
0 of 2 checks passed
0 of 2 checks passed
@travis-ci
Travis CI - Branch Build Failed
Details
@travis-ci
Travis CI - Pull Request Build Failed
Details
@christophertino christophertino added this to the 8.5.5 milestone Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants