-
Notifications
You must be signed in to change notification settings - Fork 60
Clickable items in navigation without drop-down #182
Comments
Unfortunately - no. The navbar is defined by |
Fair enough. I have modified my MediaWiki:Sidebar instead. |
Mediawiki skin strapping can have clickable sidebar links. Example wiki? We are using strapping currently but moving to foreground soon. Therefore I am sharing a link with you from archive.org where you can see it: Does that give any hint on how to implement this feature? |
Can we reopen this issue? This is how they do it https://github.com/OSAS/strapping-mediawiki/blob/master/Strapping.skin.php#L425 They use a custom render function for navigation. |
Some of the bootstraps use a little trick with a single blank heading and then span out all the links under it. The proper thing to do is to go after the developers or submit your own patch to MW core to fix the issue or improve href=“#” headings. |
I don't think we should make the header clickable. I think we should render the menu without the header, it's what do the bootstrap theme. We can create an option $sideBarDropdown for that. Then in the template we can render all menus in flat. I think it will fix most use case. I'm talking about this piece of code:
|
In fact, because skin extend BaseTemplate it's possible to do whatever needed.
I think this skin have very good UX idea, but perhaps it's easier to start it from scratch on bootstrap 4. |
The skin is based on foundation 5 and if anything the next iteration will be based on foundation 6. |
As per https://phabricator.whonix.org/T809 a client with no js will be able to click the top link of a dropdown and the dropdown will appear. However, the links in the dropdown are not clickable. Suggestions of rendering all links in the top as bootstrap does with their custom override of links held in one
The above might solve main navigation and limit the number of items in top bar for navigation. What it doesn't address is the dropdown of the toolbox (gear icon) and user (user icon). Those are still broken and hobble the website when the user doesn't have JS turned on. This is a know limitation of Zurb Foundation Framework because of the navbar js and css construction. TL;DRSo what is causing this? JS not only allows the hover over to drop the dropdown, as far as I can tell it brings the dropdown element into "focus" which then allows the So how to fix it?
|
Could you re-open please? |
Foundation 5 provided a css fix for the menu bar dropdown menus being broken without javascript, but it wasn't being applied because it was under the class ".no-js" and mediawiki uses ".client-nojs". Simply renaming seemed to be enough to make it mediawiki aware, and the drop items are now clickable without js. Note: This isn't a solution to the "show all items request" Additionally, however, both the menu css and the fix are under the > 40em media query. At < 40em the menus are combined under a single dropdown which doesnt even display it's list items when js is disabled. Looking into it. |
I expanded the main menu dropdown with this code:
inside the "full menu" screen query You can have the expanded menu inside the collapsed mobile "MENU" if you put the code outside of the screen query, but more is needed to get rid of the unnecessary BACK and MENU text:
Works for us (whonix) but no guarantees about other sites with more than one menu (we only got one). |
You can just hack direct links into the menu with Mediawiki:Sidebar, and then those are clickable of course, even though not "internal" links per se. Did this with social media icons e.g. at spaghetti-western.net |
@rebastion I get that, but no-js kills the action menu too. Unless they are a just browser of a site, the ability to do anything is shut down completely without JS turned on. EDITED I would be open to adding an extra stylesheet aimed at no-js, example - Here is the first patch of code for it.
Just saying, I know Foundation v5 isn't being developed any longer. Just wondering if anyone forked it and has continued the development of it to handle no-js better. |
The drop-down items in the navigation bar are great, but is there a way to have plain clickable items, with no dropdowns, defined in MediaWiki:Sidebar or elsewhere? In the documentation I couldn't find any reference to this seemingly basic use case.
The text was updated successfully, but these errors were encountered: