Closed (fixed)
Project:
ZURB Foundation
Version:
7.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2015 at 18:05 UTC
Updated:
26 Feb 2015 at 02:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yaelsho commentedComment #2
nickbumgarner commentedWhat are you trying to accomplish, having the Drupal messages display as reveal modals?
Comment #3
kevinquillen commentedTry adding the attribute 'data-reveal' to the div that is displaying the modal.
See the 'Basic' example here: http://foundation.zurb.com/docs/components/reveal.html
Comment #4
FiLeVeR10 commented@yaelsho does #3 solve your issue?
Comment #5
shauntyndall commentedI'm gambling that theme_zurb_foundation_reveal() doesn't implement the "data-reveal" attribute (per the instructions referenced https://www.drupal.org/node/2052525). @filever10 can you attempt to replicate?
Comment #6
FiLeVeR10 commentedSo I've tried out the process and can verify that adding
data-revealto the reveal container does in fact make the reveal work.Also noticed that the href on the resulting link was "javascript:", so I also reset that to follow the foundation example of "#".
*One thing to note, when I enabled the subtheme on the latest 7.x-5.x it threw an error that prevented foundation from loading at the bottom of the page. I disabled libs.js in the subtheme and the error went away and the reveal works as it did on the base theme with the above changes.
Comment #7
yaelsho commented#6 is working great (manually patched 7.x-5.0-alpha8 ver).
Thanks!
Comment #8
FiLeVeR10 commented@yaelsho you're welcome, I'm glad it's working for you! Hopefully it will get added in once it's reviewed.
Comment #9
yaelsho commentedAnother issue related to Foundation 5 reveal:
When adding AJAX reveal modal, it work post the change in #6.
But post closing the AJAX reveal modal, and trying to open it again by clicking the same link, the reveal doesn't work as expected: The reveal-modal-bg doesn't toggle, and the modal opened in a shifted way (to high). The same issue appears if there are 2 different AJAX reveal modals in the same page, the first one will work great, when closing it, the 2nd modal will be opened in the same shifted way.
It seemed to me like some issue of initialization that need to be done/prevent while loading the ajax modal.
I tried to look into it, but didn't find a resolution.
Are you familiar with this issue?
I can open a different issue if you prefer to separate them.
Comment #10
kevinquillen commentedThere are known issues with the Reveal plugin itself in some more 'advanced' usages. I think I understand what you are describing as I have seen the same behavior. There are some issues with DOM state/refresh and binding in some cases.
https://github.com/zurb/foundation/issues?q=is%3Aissue+is%3Aopen+reveal
I do know that Foundation 5.5 released with a particularly nasty showstopper bug for reveal (related to positioning) - they may have resolved this by now.
Comment #11
yaelsho commentedTo prevent the issue from #9, I've created a copy of html.tpl.php for the requested ajax node (html--node--id.tpl.php), and delete the following lines from the tpl copy:
This prevent from foundation to initialized twice.
Got the idea from: https://github.com/zurb/foundation/issues/2928.
Comment #13
shauntyndall commentedPatch #6 has been tested & committed to the dev branch. Thanks @filever10! The other issue you noticed is also corrected. The libs.min.js need to be recompiled in the STARTER theme.