-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Improve legibility of registration links #5089 [TASK-1058] #5090
Conversation
46b33b2
to
1b172e8
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.
Cool!
@pauloamorimbr During review / edge case testing I made some suggested changes in a separate branch (https://github.com/kobotoolbox/kpi/tree/5089-fix-registration-links--additions):
- Checked what it looks like when an SSO provider is configured — I color-matched the SSO separator with this new links one (went with the new color)
- Fixed a layout issue on signup page on narrow screen width
- Also fixed an unrelated color issue that was introduced recently — changed 'required' asterisks back to light red
- Remove extra separator if the Django admin didn't configure Privacy Policy / Terms links at all
Compare: https://github.com/kobotoolbox/kpi/compare/5089-fix-registration-links..5089-fix-registration-links--additions — (you'd need to merge 'main' into '5089-fix-registration-links' first to see a clean diff)
+sso | |
---|---|
Other questions (not included above)
- 🎨 @tesster7 What do you think of these legal link colors/sizes/etc.? I wonder if we'd want them to match more closely with the Create Account / Forgot password or not. The contrast is still a little low imo but maybe want to avoid it being too busy.
sso-specific pages
- 🔧 @pauloamorimbr There are 2 more SSO-related templates (under kpi/kobo/apps/accounts/templates/socialaccount/ — login.html and signup.html) @tinok should we put the Terms / Privacy links here too, or is that not necessary? (the deep signup / login pages that you get if you're using SSO.)
sso-specific login page | e.g. with legal links |
---|---|
f698626
to
a8a6597
Compare
@p2edwards thank you for all the inputs. I believe I addressed all the comments, and I've split the legals in a separated file so it could be included in the needed places. |
(this was causing the photo credit to overlap the sign-up form)
…when layout is narrow
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.
👍 ✅ Ready to merge @pauloamorimbr — if you're cool with the pushed commits:
- I finished setting up SSO on my dev machine so I could check how signup looks.
- I adjusted it to match the others better, that's the only new thing
- Added a couple more fixes from the review branch (that got lost in the rebase I think)
- I added screenshots in comments for this PR to make these easier to review
- Edited description with test plan and screenshots of how things look now
- This change seemed simple. But with the SSO option, a responsive signup layout, and the Constance config options, it affected 4 templates and had at least 16 distinct variants. I listed them in the description in case we have to test something like this again.
.registration__legal { | ||
margin-top: 10px; | ||
margin-bottom: -20px; | ||
} |
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.
This one's for consistency with the rest of the views
SSO no links | SSO unadjusted | SSO adjusted |
---|---|---|
.registration__footer { | ||
clear: both; | ||
text-align: center; | ||
margin: 20px 10px 10px 10px; | ||
margin: 30px; |
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.
I added this 30px margin to prevent an overlap between the background shape and the photo credit:
before | after |
---|---|
.registration__legal { | ||
order: 4; | ||
} | ||
|
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.
Fixes this problem:
before | after (top) | after (bottom) |
---|---|---|
@@ -91,6 +91,5 @@ <h2>{% trans "Register using SSO" %}</h2> | |||
</div> | |||
<div style="clear:both;"></div> | |||
{% include "../legal/registration_legal.html" with config=config %} | |||
</div> |
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.
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.
Great fixes.
Checklist
Description
Move Terms of Service and Privacy Policy links inside the darker area to provide better visibility.
Notes
Some changes in the UI were made based on this discussion in Zulip.
and add separator
(before this PR)
(before contrast revisions below)
Testing
Basic Login Screenshots
Signup Screenshots
SSO login
Related issues
Fixes #5089