Problem/Motivation
Testing this Drupal 9 theme that I bought: https://demo.morethanthemes.com/flashyplus-business/default/landing-page-2 on mobile with Drupal 9.5.5 . It uses the Superfish Module Version: 8.x-1.4. If you reload the page (or any of the pages in the demo link) it inadvertently shows the desktop menu for a few seconds before showing the correct mobile accordion menu. I'd like the page to load without the desktop menu inadvertently showing.
Steps to reproduce
Open https://demo.morethanthemes.com/flashyplus-business/default/landing-page-2 specifically on mobile (cellphone) and reload page. You will see the desktop menu inadvertently flash for a second or 2 before hiding.
Thanks for any help. Much appreciated.
Proposed resolution
Adjust the Superfish JS/CSS to rectify the issue. Issue appears to be with this JS file: https://demo.morethanthemes.com/flashyplus-business/default/sites/defaul...
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | 3369876-11-Menu-display-issue-on-page-load.patch | 691 bytes | akshay_d |
| desktop-menu-shouldnt-show.png | 57.05 KB | hcanning | |
| superfish1.mp4 | 281.96 KB | hcanning |
Issue fork superfish-3369876
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
hcanning commentedTheme vendor came back and suggested adding the below CSS in Drupal as a temp fix. May help someone else. Thanks
Comment #3
ivnishup
Comment #4
preeti.chawla commentedI am working on it
Comment #5
ivnishPlease don't change issue status if patch is not ready
Comment #6
lobsterr commentedComment #8
lobsterr commentedComment #9
lobsterr commentedUnfortunately, my approach will have a blinking side effect for normal resolutions.
I have an idea, to render accordeon or select menus for the small screens and show/hide them using media queries, but it will take a lot of time to implement and there could be potential bugs :(
Comment #10
akshay_dI rerolled the patch with minor updates and provided it for the 8.x-1.x branch. It works with Drupal 10 instances.
Hope this helps someone.
Comment #11
akshay_dMinor updated to the previous patch. Use this patch with latest 8.x.1.13.