News for hackers. Stuff that matters.
Re:Overengineered Anchor Links by noahjk on Thursday April 03, 2025 @11:57AM (#43571580)
Once I got over my fear of clicking their links, which I assumed would open a new page (but instead just expanded a pane in-line), I really enjoyed it. I’m very wary of opening new pages. (Also, I first tried to hold-click on the link to open in new tab, but it just behaved like regular text and highlighted, which led to a momentary confusion. I would have preferred a more obvious indication of what would happen when clicking, like a down chevron or something.)
Re:Overengineered Anchor Links by creata on Thursday April 03, 2025 @12:25PM (#43572027)
Yeah, styling it as a link makes it a bit unclear as to what it's going to do.
Re:Overengineered Anchor Links by matser on Thursday April 03, 2025 @12:34PM (#43572162)
Thanks!
Re:Overengineered Anchor Links by creata on Thursday April 03, 2025 @12:45PM (#43572310)
Thanks for publishing the article. Idk if my comment sounded too harsh; sorry if it did.

If you're taking more unsolicited nitpicky suggestions, imo the ToC items on the left could use cursor:pointer and a background color change on hover.

Re:Overengineered Anchor Links by jw_cook on Thursday April 03, 2025 @07:23PM (#43576659)
I also assumed those were going to be links, but after a second of confusion I really liked the side pane with animations. It adds a lot to the article and it's more pleasant than the usual alternatives (lightbox on top of the text, or opening a bunch of tabs).

Off the top of my head, I'm not sure how else you'd visually communicate "this bit is interactive on click/hover but isn't a link." Maybe a different text color (without underline), background color, outline (replaced by the colored highlight bar on hover), or a slightly larger and more distinct icon to replace the generic 'image' icon?