-
Notifications
You must be signed in to change notification settings - Fork 193
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
Block Promotional Emails UI #1545
Conversation
ae20613
to
773972c
Compare
b0802fb
to
c2a4bd8
Compare
e6929c5
to
dcccf6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bunch of nits (i.e. non-blocking), and I encountered the following issues, the last of which I think could be blocking (but possibly has an easy fix - see my inline comments):
Accessibility
The new control is unreachable via keyboard. I think we can live with that for the short term, as long as we make sure to resolve that in the React version where react-aria can take care of much of that for us - but that's going to be the most complex part of the React implementation, so mentally prepare for that 😅
Toggle alignment
For free users, the toggle no longer is aligned with the label:
Inconsistent state
Hmm, I can't reproduce this consistently, but I've been able to get my aliases in an inconsistent state:
("None" is highlighted, but otherwise everything shows (correctly) that it is set to block promotional emails.)
This only happened to a single alias at first, but started happening to the ones I created afterwards as well, so looks like it's not a rare issue :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I'm no longer seeing the inconsistent states, so once the l10n strings land, I think this is good to go!
cfcb9e4
to
2aba167
Compare
…ween both free/premium states, add back GA event
…new prompt above critical emails selector
Co-authored-by: Vincent <Vinnl@users.noreply.github.com>
Co-authored-by: Vincent <Vinnl@users.noreply.github.com>
Remove commented SCSS Co-authored-by: Vincent <Vinnl@users.noreply.github.com>
- Update all "critical" terms to use "promo-blocking" - Removed commented code/debug classes/unreachable CSS - Fix bug where aliases were not being set to promo-blocking on page load - Add additional context in comments - Fix bug where filter would show extra aliases when filtering by promo-blocking only. - Revised JS code to be more readable
…brary, added missing fonts
bc1c0b5
to
1523866
Compare
Summary
Blocked until mozilla-l10n/fx-private-relay-l10n#61 and mozilla-l10n/fx-private-relay-l10n#63 are merged
This PR lets users set their email forwards prefs to "Block Promotional Emails".
This PR depends on/is blocked by PR #1530TODO:
Screenshot (if applicable)
How to test
Checklist
/static/scss/libs/protocol/css/includes/tokens/dist/index.scss
).