• Resolved danielgm

    (@danielgm)


    I suggest providing an option to scroll the screen to the accordion being activated. This ensures that the content unfolding will become visible without further action from the user.

    Additional support for loading a page with a particular accordion already expanded by attaching a URL fragment would be even better.

    Ex: domain.com/demo/#accordion-2

    would open /demo/ and unfold the second one and scroll to it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nikita

    (@nko)

    Hi.

    I don’t think scroll to accordion item is the good feature for the plugin. I personally don’t like this behavior. You can add scrolling using custom JS in your theme or plugin.

    Expanding accordion by hash will be added in the next plugin update. It is already working for Tabs block and will work in the same way for accordions. Added GitHub issue https://github.com/nk-o/ghostkit/issues/45

    Thank you.

    Thread Starter danielgm

    (@danielgm)

    It’s not always good for usability, I agree. Ok, I will script this myself where appropriate. Great to hear you are going to implement hash-based navigation!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Suggested option to scroll to opened accordion on click’ is closed to new replies.