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
Fix default issue #6415
Fix default issue #6415
Conversation
This animation is not worth it as a default because of https://github.com/zurb/foundation/blob/master/js/foundation/foundation.reveal.js#L324-L355 Is not tested very well for a default simple use case. Keep it simple.
Also I am not sure why end users configuring zurb foundation have to put hacks in our CSS like this:
Just to get the modal window to not be busted most of the time? I just want to go to bootstrap popup because zurb still doesnt have a really easy to use and non buggy default modal. If we add those things, that could help the situation right? |
Can you explain what issue this is supposed to resolve? |
Recent code added to master is causing centering issues (in height) with the modal. If you have an anchor farther down the page which calls data-reveal-id on a form. The form will never be centered because of code added by several authors the past few months. https://github.com/zurb/foundation/blob/master/js/foundation/foundation.reveal.js#L324-L355 If you simply keep the default without all the fancy stuff, there will not be as many issues of people using this in the wild. I thought keep the base install simple. Also I can barely even see how the animation by default is really adding that much value to user experience. I would prefer the base software not give headaches to users and suggest setting the default to no animation so it bypasses #L324-L355 incorrect assumptions of height and centering of the modal popup. I really think that the reveal modal bg class should get what I specified with a fixed position, but that is for you guys to test and decide on. |
Can you explain how this used to work vs how it works now? Testing it out, the modal open a certain distance from the top of the viewport no matter where the page is scrolled. Is that not expected behavior? |
Try putting an anchor farther down the page where there is a scrollbar and On Fri, Mar 27, 2015 at 12:57 PM, Rafi notifications@github.com wrote:
|
Please give extra scrutiny to this PR! The last time a PR was accepted for Reveal (5.0), it completely broke it and we had to wait weeks for the next release to restore functionality. This is such a core component of Foundation, it would put out a great number of developers if it got broken again. |
I guess we can start with someone recreating what I see. I can rollback a On Mon, Mar 30, 2015 at 10:52 AM, Jonathan notifications@github.com wrote:
|
Can you create a CodePen that demonstrates this, or supply a link where this behavior is happening? |
@jonathanmelville What this guy said—a few of us were looking at this last week, and we need some help understanding it further. |
Just close pull request. Not worth everyone's time. There are bugs in that new animation logic I referenced and I never saw how anything was even animated when I set the animation to null or when it was disabled. — On Mon, Mar 30, 2015 at 5:48 PM, Geoff Kimball notifications@github.com
|
Ok, we want to fix issue. We're looking at all this stuff as we re-build most of the JS plugins so it will be taken care of in the next version. |
This animation is not worth it as a default because of
https://github.com/zurb/foundation/blob/master/js/foundation/foundation.reveal.js#L324-L355
Is not tested very well for a default simple use case. Keep it simple.