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

CSS Modal fade/show #269

Closed
clash99 opened this issue Jun 27, 2016 · 7 comments
Closed

CSS Modal fade/show #269

clash99 opened this issue Jun 27, 2016 · 7 comments

Comments

@clash99
Copy link
Contributor

clash99 commented Jun 27, 2016

Due to differing modal references, some modals fade in while some just show. Fix to all be consistent.

@clash99 clash99 self-assigned this Jun 27, 2016
@seav seav added the ui/ux label Jun 29, 2016
@wonderchook wonderchook added this to the Post July Release Sprint milestone Jul 9, 2016
@clash99
Copy link
Contributor Author

clash99 commented Aug 2, 2016

I also notice the the pages under the modal background are changing (from showing records in a list to showing no records). I wouldn't expect the underlying page to change at all when the modal opened.

Before modal is open:
screenshot 2016-08-08 16 27 06

After modal is open:
screenshot 2016-08-08 16 26 04

@ian-ross ian-ross self-assigned this Aug 9, 2016
@ian-ross
Copy link
Contributor

ian-ross commented Aug 9, 2016

These two issues are somewhat related. The reason that some modals fade in and some just appear is that we have two different kinds of modals: "real modals", where the HTML for the modal is included in the page template (and has a class of "modal fade" to make it fade in) and a # link is used to trigger modal display; and "fake modals", which are full pages with their own URLs that just happen to have a modal displayed over the top of them (like /organizations/new that you showed above). I don't think there's a way to make the "fake modals" fade in without doing some extra JS to trigger the fade-in when the page is ready, which is kind of nasty.

Worse though, is the fact that these "modals" are really not modals at all, but are separate pages, which means that the page content may not be the same as the referring page. You can see this particularly clearly on the project dashboard. If you're on the project overview and you select "Add resource", the underlying page changes to the resource list view with the "add resource" modal over the top of it. If you press "Cancel" in the modal, you end up in the resource list view, not back in the overview. (Oliver says this used to work, using some HTTP referrer trickery to get back to the right page, but got broken somewhere along the way. In any case, even if the "Cancel" button works correctly, the underlying page view still changes when the modal is activated, which is obviously not right.)

The only way to resolve this effectively is for every page where modals may occur to include all the HTML for all the possible modals that may appear on that page. That's going to require quite a bit of restructuring of the templates to make it work, so it probably needs to be discussed to come up with a way to manage it smoothly.

Oliver says he'll think about it a bit, and I will too.

@seav
Copy link
Contributor

seav commented Aug 9, 2016

For the "fake modals", is there really a value in presenting them to the user as modals? For confirmation actions ("Are you sure you want to archive the project?") modals make sense. But for other forms that take up a lot of the user's time, such as the add organization form, they can be real pages with not much difference in user cognition.

@clash99
Copy link
Contributor Author

clash99 commented Aug 9, 2016

I think we should move this one out since nothing is really "broken", just messy/ inconsistent. Once I have time to look at everything all together, I will revisit with a recommendation.

@wonderchook - Can we move this to Sprint 8? or even 9?

@wonderchook
Copy link
Contributor

@clash99 yes, I only left it in sprint 7 because I wasn't sure how many items we'd be able to do with the UI.

@seav
Copy link
Contributor

seav commented Aug 18, 2016

The separate issue regarding modals vs. pages was forked as #572, which should be resolved first. For the modals that stay as modals, this issue is for making their fade-in appearance consistent across the website, if such fading is really desired.

@wonderchook wonderchook modified the milestones: Sprint 9, Sprint 10 Sep 8, 2016
@wonderchook wonderchook modified the milestones: Not Scheduled, Sprint 10 Sep 28, 2016
@ian-ross ian-ross removed their assignment Nov 28, 2016
@dpalomino
Copy link

Not currently relevant, closing issue. Please reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants