Live data from Hacker News

Show HN: Mimicking the Bloomberg menu widget without JavaScript

dosyago-coder-0.github.io

11–20 of 144 posts

Re: Show HN: Mimicking the Bloomberg menu widget without JavaScript

#11
Awful usability. I expect that when hovering over a section and moving my cursor to the right I would stay within that section, but it always just reverts to home or whatever other section I've clicked.

If hovering over a section doesn't enable access to that section, then don't show the expanded version. Wait for a click event to show it at all.

Re: Show HN: Mimicking the Bloomberg menu widget without JavaScript

#12

Awful usability. I expect that when hovering over a section and moving my cursor to the right I would stay within that section, but it always just reverts to home or whatever other section I've clicked. If hovering over a section doesn't enable access to that section, then don't show the expanded version. Wait for a click event to show it at all.

There's a good article about Amazon implementing this feature for their mega menu. Blew me away when I first read it, it's very obvious and simple in hindsight.

http://bjk5.com/post/44698559168/breaking-down-amazons-mega-...

Re: Show HN: Mimicking the Bloomberg menu widget without JavaScript

#14

Awful usability. I expect that when hovering over a section and moving my cursor to the right I would stay within that section, but it always just reverts to home or whatever other section I've clicked. If hovering over a section doesn't enable access to that section, then don't show the expanded version. Wait for a click event to show it at all.

There's a good article about Amazon implementing this feature for their mega menu. Blew me away when I first read it, it's very obvious and simple in hindsight. http://bjk5.com/post/44698559168/breaking-down-amazons-mega-...

Yes, there are some great tips. I still think this style menu is just bad, though. Although certain tweaks can improve the UX, it's still an frustratingly unusable interface for people with certain motor disabilities and even just older users whose mouse/trackpad skills are not great.

Re: Show HN: Mimicking the Bloomberg menu widget without JavaScript

#15

Awful usability. I expect that when hovering over a section and moving my cursor to the right I would stay within that section, but it always just reverts to home or whatever other section I've clicked. If hovering over a section doesn't enable access to that section, then don't show the expanded version. Wait for a click event to show it at all.

That's not the actual Bloomberg[0] menu. This copy does not seem to implement that feature, which is one of the most important features to have I think.

[0] http://www.bloomberg.com/

Re: Show HN: Mimicking the Bloomberg menu widget without JavaScript

#16
post #10

Well done! Moving the mouse to a child resets the position though. You may need some JS to do some fancy stuff like here: http://bjk5.com/post/44698559168/breaking-down-amazons-mega-... Or to keep it JS free there might be a way to structure the HTML similar to: . Hover a :hover pseudo on will also fire when hovering over .

Even the triangular cursor path thing could probably be done with just CSS, a short-lived extra element in the childnav that starts transforming away on hover, making the next nav item accessible if the intent turns out not to be to move to the submenu.

Submit a PR.

Re: Show HN: Mimicking the Bloomberg menu widget without JavaScript

#17

Awful usability. I expect that when hovering over a section and moving my cursor to the right I would stay within that section, but it always just reverts to home or whatever other section I've clicked. If hovering over a section doesn't enable access to that section, then don't show the expanded version. Wait for a click event to show it at all.

That's not the actual Bloomberg[0] menu. This copy does not seem to implement that feature, which is one of the most important features to have I think. [0] http://www.bloomberg.com/

not sure what you mean. I've clicked on your link and found the same menu as OP is showing.

Re: Show HN: Mimicking the Bloomberg menu widget without JavaScript

#18
post #2

Context: I like the Bloomberg site and their drop-down menu is cool. Purely as a challenge, I set out to mimick the styles and behaviour of that menu without using JavaScript and trying to keep the HTML/CSS as minimal as possible. Their menu widget does not work if you switch of JS (but this was not a motivation for me to make this). Tested on IE 11, Edge 12, latest Chrome stable and Firefox dev on Windows 10. Source…

Firstly, job well done. Secondly, what is the motivation of going pure CSS aside from the challenge of it?

I once prefered Pure CSS stuff until I learned Javascript myself. Now I've come to loathe that approach on complex menus and widgets.

Mainly I dislike using them because I have to refactor them to use Javascript so they can be stateful (reacting to an active category or something indicated by the url or querystrings, etc.

Again, good job though if it's just for the lulz.

Re: Show HN: Mimicking the Bloomberg menu widget without JavaScript

#19
post #17

Earlier quoted context omitted.

That's not the actual Bloomberg[0] menu. This copy does not seem to implement that feature, which is one of the most important features to have I think. [0] http://www.bloomberg.com/

not sure what you mean. I've clicked on your link and found the same menu as OP is showing.

No, he's correct. If you click on "Menu", move down to "Markets", and then move right, it stays on the "Markets" submenu on Bloomberg but reverts to "Home" on OP's reimplementation.
Post reply on HN