I have an accordion which opens to more than a screen's worth of text. When I scroll down and click on another section it opens by expanding to the top, leaving the window in the middle of text making me have to scroll up to get to the beginning of the section.

Is it possible to have the accordion scroll to the top of the section when each tab is clicked?

I've seen some posts on the jQuery forums as well as in the views_accordion module issues about this problem but I am not proficient enough in JavaScript to implement them for this module.

views_accordion: https://www.drupal.org/node/409088

jQuery Forums: http://forum.jquery.com/topic/force-sccordion-to-focus-at-top

Comments

Jessica.K’s picture

Title: Accordion Tabs Don't Scroll to Top When Clicked » Accordion Tabs Don't Scroll to Active Tab When Clicked, Leaves Content Out of View
Issue tags: +Accessibility

There are several places on our site where this issue now causes a problem, sometimes leaving people at the absolute bottom of a page with no tab in sight. I would start to consider this an accessibility problem with how far a user can be removed from the content to confuse page navigation. JS isn't my strong suit either, so attempts to modify the module myself have gone no where. Any help?