News for hackers. Stuff that matters.
Re:Make Tmux Pretty and Usable by miki123211 on Tuesday April 14, 2026 @03:54AM (#47762621)
Whether this should be a button or link from an A11Y perspective is... kind of up in the air.

There's an argument that links are "portals" that take you somewhere, while buttons cause some action to happen, Whether you treat a file as a resource (which your browser just chooses to save on disk instead of rendering on screen), or whether you treat it as an explicit "download" action, is a matter of semantics I guess.

Re:Make Tmux Pretty and Usable by rpastuszak on Tuesday April 14, 2026 @04:24AM (#47762834)
<a href='...' download>...</a>
Re:Make Tmux Pretty and Usable by em-bee on Tuesday April 14, 2026 @08:19PM (#47773161)
you can style a link to look like a button if you care about the difference.

but traditionally, references to files are links, and it is up to the browser what to do with them (whether to just download them or to download and then display them). that's what all links are. that's the whole point of hypertext. every link causes the browser to make a request to a server and fetch something. buttons are for activating things, not for downloading.