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

Move to the top of the form when transitioning from signup to census #19201

Merged
merged 2 commits into from Nov 17, 2017

Conversation

drewsamnick
Copy link
Contributor

Currently, after you hit "submit and continue" on the HoC signup form, you see the bottom of the census form which is a bit confusing. This repositions you to the top of the form.

@@ -170,6 +170,8 @@ function showCensusForm(data) {
$('#census-header').show();
$('#thanks-header').show();
$('#census-form').show();
// Jump up to the top of the form
window.location.hash = '#thanks-header';
Copy link
Member

Choose a reason for hiding this comment

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

We could also do a smooth scroll which often looks nice.

function adjustScroll(destination) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't know about that. I tried it out and I actually like the original approach better. The scroll doesn't really make sense here since we are swapping out one form for the other rather than moving to another spot in the same form.

@tanyaparker
Copy link
Contributor

Can you take a screencap with licecap or Jing?

@drewsamnick
Copy link
Contributor Author

jump to top of census form

@drewsamnick drewsamnick merged commit a632f08 into staging Nov 17, 2017
@drewsamnick drewsamnick deleted the census-hoc-go-to-top branch November 17, 2017 00:15
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.

None yet

3 participants