Needs review
Project:
Corolla
Version:
7.x-2.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2011 at 11:48 UTC
Updated:
13 Dec 2011 at 08:40 UTC
The built in support of Superfish is a nice easter egg. Thx!
However while the Superfish menu module is unobtrusive itself, it does not work in Corolla if I disable JS in my browser.
Comments
Comment #1
Jeff Burnz commentedWhy is this posted against this theme? Aren't you talking about the module?
Comment #2
thamasWell, 'cause the module works on its demo page (http://mehrpadin.net/demo/superfish) with disabled JS. The module also works with the default Bartik theme with disabled JS.
That is why I thought that it is the issue of Corolla. I do not really know that the module should support themes or themes should support the module (however you wrote in the ReadMe.txt of Corolla that "corolla supports the Superfish module").
Thanks for your work with your cool themes. If I was wrong, please set this issue against Superfish.
Comment #3
thamasComment #4
Jeff Burnz commentedEdge case, sorry but I really don't have time to work on extreme edge cases such as this, I can only focus on the really big issues that might affect most users.
If you can pinpoint the problem and provide a fix I will commit it, otherwise its a won't fix.
Comment #5
thamasOK. Let me see… :o)
It is defined in the 66. line of navigation.css
This is what prevents displaying submenu items when JS disabled. However this is not needed, 'cause "display: none;" is defined dynamically (when JS enabled) as an inline style for "ul.sf-menu li ul" by the SF module. (And when JS disabled, we don't want this setting.)
Comment #6
Jeff Burnz commentedI am really cagey about removing that - what happens is that you can get flashes of the entire menu if JS is slow to load, so having this in the CSS completely negates the possibility of that happening. I've noticed this happens especially if the theme styles are heavy, meaning a lot of CSS and images to load, and Corolla is not a light theme by any means - its has a lot of CSS.
A lot of people have complained over the years about that issue (all menus showing momentarily until the dynamic class is added), so personally I am against removing it by default.
That's probably not the enthusiastic answer you were looking for but I have to go with the "most expected behavior", which in my experience is all menus hidden by default, rather than no JS working menus.
I'll leave this open and see if we can get some feedback over the next few weeks from users.
Comment #6.0
thamascorrected a typo