Foundation 6 accordion deep-linking with smudge offset no longer working correctly? #12623
Unanswered
rickcurran
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It opened accordion #6 for me just fine. But if your browser window is smaller it scrolls to the top of the accordion, meaning to the top of the ul and not #6. I believe if you want it to scroll to #6 you change data-deep-link-smudge to false or just don't include it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am implementing some Foundation 6 Accordions which can be opened automatically by the deep-linking functionality and using the data-deep-link-smudge="true attribute to automatically adjust the position of the linked Accordion item. However, it appears that this functionality is not working correctly and I am trying to determine / confirm that this is an issue with Foundation 6 and not just an issue in own code. (Foundation 6 has been around for a while at this point so it's possible that a bug is occurring with modern browsers).
In an attempt to confirm this I have created a basic example to test using the following markup within a page set up with the appropriate Foundation JS and CSS files referenced and set up for deep-linking as per the Foundation 6 docs.
Here is the basic markup I've used for the Accordions:
Here's a link to a test page I have set up, this should open the 6th accordion and scroll to its position on the page:
https://qreate.co.uk/test-accordion.html#deeplink6
Can anyone confirm that this is also not working correctly for them?
Beta Was this translation helpful? Give feedback.
All reactions