Comments (4)
Hi,
We've discussed this in the forums - here are a couple of discussions with some info and also code samples how to change the default behavior if you'd like to do it:
http://www.smartmenus.org/support/forums/#/discussion/comment/70
(code samples to make the whole item just a toggle button)
http://www.smartmenus.org/support/forums/#/discussion/comment/131
(code sample to split the item into two targets)
But in short, I have seen many different approaches to similar collapsible menus on mobile (I believe there aren't any official guidelines). Basically we've chosen this default behavior because it allows the links of parent items to be activated even when they have sub menus (i.e. on the second click/tap) and at the same time the items remain a single tap target as opposed to having another smaller hit target inside the item to toggle just the sub menu (arguably this improves usability for regular non-tech users who might not realize how to display the sub menu).
To be honest I was also very hesitant what to choose for the default but in the end went with the current in favor of the 2 separate targets approach.
Anyway, let me know if you have any suggestions/comments.
from smartmenus.
I've decided to leave it as is.
However I've observed one other UX issue. When you open about
menu, and then you decide to open support
, then about
closes down and support
opens. What happens is that support
submenu jumps up ,and it's not under the user finger anymore.
Is there a way to leave the about
open?
from smartmenus.
The other option would be the iPhone approach: A right-pointing arrow / closing pointy bracket (bigger-than char) or just two / three dots take you a level deeper, hiding the rest, the current parent level only being indicated by its title, sitting above and pointing backwards.
The Android UI has adapted that, to some extents, as well (native settings menu).
from smartmenus.
@ikixxx Yep, that's a slight issue with the default behavior. I guess it would be quite easy to keep about
open via some API tweak but this would mean that once a sub is expanded it can't be hidden any more. Would that be OK for you?
@ginsterbusch Those don't allow links to be added/activated to the parent items. But, yes, such drill-down menus are also used on the web though I believe they are more popular for apps.
from smartmenus.
Related Issues (20)
- Menu Z Index question. HOT 2
- Google SEO 2022: Complete SEO Beginner's Guide
- Pay Per Click vs. Search Engine Optimization
- On-Page vs Off-Page SEO: What's the Difference?
- please add new tag
- A11y: menu toggle button needs a :focus halo HOT 2
- A11y: ESC key should dismiss expanded menu HOT 1
- Second click on link not functional on Bootstrap 5 HOT 1
- A11y: submenus should not open/close on focus HOT 2
- A11y: replace span subIndicator with button HOT 2
- eval of user controlled data? HOT 6
- please add support bootsrap 5 HOT 8
- fix warning
- A11y: add role="button" to span subIndicator HOT 1
- a11y: move the <span> subindicator outside the menu link anchor tag
- [A11Y] aria-current on active menu item HOT 1
- SmartMenus should log errors to console, not use `alert()` HOT 2
- Question about SmartMenus 2 initialization HOT 2
- Programmatically open/hide SmartMenus 2.0 HOT 1
- Open page on pages with sub-links HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartmenus.