Accessible hamburger buttons without JavaScript
41–50 of 154 posts
Re: Accessible hamburger buttons without JavaScript
#42Earlier quoted context omitted.
I never said that it did.
Except in the bit I quoted above, no. Wait, what? This might seem like I'm simply being contrarian or wanting stamp my rightitude on the matter, but your framing of the icon's absolute comprehension by everyone else seems to me to be ... ill-advised. Someone not doing their homework might just take your schpiel at face value and propagate problems obliviously. I've 'beta'd' hamburger icons a few times over the years…
To me saying that something becomes something over a few decades doesn’t imply that it has been that way from the beginning. It has become a de facto standard over two decades doesn’t mean that it was a de facto standard two decades ago.
I feel like this is really not important, and I’ll change it to the last decade because it doesn’t matter. It’s definitely true that the adoption was most relevant in the last decade. I remember building hamburger menus over 20 years ago though.
What is more important is your second point that I sort of endorse hamburger buttons as a good UI element choice with this introduction. To me, this introduction was not meant to be controversial in any way. I believe that hamburger buttons are one of the most recognisable UI elements, and I don’t think that companies like Apple would use them without doing their homework.
That being said, it was not my intent to promote them as such. I didn’t do any profound research on the topic, and this article is not meant for user interface designers, but for developers that want or need to implement such a button because it either fits their use case or because the designers made the decision.
I’ll amend the intro to be more careful in the wording.
You came in a bit hot with your initial comment, but thanks for your feedback :)
Re: Accessible hamburger buttons without JavaScript
#43The good old "hamburger menu". That menu that stores everything designers never knew how to organize it.
Re: Accessible hamburger buttons without JavaScript
#44Anchor elements aren't buttons! Stop using them as buttons!! Anchors navigate. Buttons have effects.
That’s why the anchor gets the role=“button”. Unfortunately you can’t set the target of the page with a button (without JavaScript), that’s why an anchor link is used.
Re: Accessible hamburger buttons without JavaScript
#45Earlier quoted context omitted.
To be fair the OP hides the trigram from screen readers and provides them with the ‘open menu’ label.
No, they did not, they present both "accessible hidden link" and "inaccessible visible label", at least I see no `aria-hidden="true"` in the code [1] on the label right now, I see just: ≡ × So there still remains "readable" structure loosely identical to identical to multiplication sign (With active CSS, only one half would be presented to SR, since the other has `display: none`, but still…) BTW Fact that wording of…
Re: Accessible hamburger buttons without JavaScript
#46Anchor elements aren't buttons! Stop using them as buttons!! Anchors navigate. Buttons have effects.
That’s why the anchor gets the role=“button”. Unfortunately you can’t set the target of the page with a button (without JavaScript), that’s why an anchor link is used.
menu
Or maybe: menu
Not sure either of those options are better than the original post though :)Re: Accessible hamburger buttons without JavaScript
#47> "Over the last few decades hamburger buttons have become the de facto standard to expand larger menus on smaller devices. They are so ubiquitous that every user immediately knows what they are when seen in the top left or right corner, which makes them a good user interface element choice." "Last Few Decades"? Eh? A decade.. perhaps? "Every User Immediately"? This is not at all my experience. Perhaps with younger u…
This immediately made me think of Wikipedia's latest change that moves their main menu behind just such a hamburger button on desktop, and replaces it with a table of contents down the left side. Now instead of lazily clicking from one random article to the next (or to a different language, or to "current events", or the "main page" of headline articles), one has to move the mouse twice and make two clicks to get to…
Re: Accessible hamburger buttons without JavaScript
#48Earlier quoted context omitted.
To be fair the OP hides the trigram from screen readers and provides them with the ‘open menu’ label.
No, they did not, they present both "accessible hidden link" and "inaccessible visible label", at least I see no `aria-hidden="true"` in the code [1] on the label right now, I see just: ≡ × So there still remains "readable" structure loosely identical to identical to multiplication sign (With active CSS, only one half would be presented to SR, since the other has `display: none`, but still…) BTW Fact that wording of…
Re: Accessible hamburger buttons without JavaScript
#49Earlier quoted context omitted.
Yeah on desktop it's particularly bizarre design choice. Hamburger buttons are designed to conserve pixels on cramped horizontal screens. They make zero sense on a 4k ultrawide monitor.
likely a case of wanting "one design to fit all devices".
The new design vs the old design.
Re: Accessible hamburger buttons without JavaScript
#50everything old is new again. We were doing this crap in 2011
I don't know if it's still true as I heard this state a few years ago, but at one point the growth rate of new web devs meant that at any given year, more than 50% of all web devs had less than 2 years of experience.