tr-pages icon indicating copy to clipboard operation
tr-pages copied to clipboard

Show tags as a list of hyperlinks instead of using a drop-down menu?

Open tripu opened this issue 7 years ago • 3 comments

Advantage: you can see all tags at a glance, and you save clicking on the drop-down (and possibly scrolling on it), which may be tedious.

/cc @bert-github.

tripu avatar Mar 08 '18 11:03 tripu

Some disadvantages I can think of:

  • Hyperlinks are actions (“take me to this other page”), but these tags are binary switches, options (“filter by this”, “now don't filter at all”, etc)
  • Hyperlinks aren't designed to hold a state, so information about which tag you're filtering by (if any) at any given moment would have to be conveyed somewhere else (eg, in a heading), or in the selected hyperlink itself (eg, with a different background colour), which is a bit of a hack, and not all that intuitive
  • In the progressively enhanced version (ie, with JS running), we'd have to capture the click events and defaultPrevent them, which is counter-intuitive, and ugly
  • To remove that filter, we either add a special hyperlink (“all tags”) and make it apparent (more difficult to understand), or force users to go back in history until they reach the initial, non-filtered version of the page (if that was their entry point, that is!); either solution looks bad to me
  • If/when the no. of tags increases, we'll need more real space on the page to show them all (the drop-down, on the other hand, has a fixed size no matter how many tags it holds)
  • A11y?

tripu avatar Mar 08 '18 11:03 tripu

Received this feedback today: [[ The https://www.w3.org/TR/ page looks great now, but I noticed that while many specs have useful tags attached to them, they're not clickable - you have to manually go back to the search box at the top of the screen and select the tag you want to filter for.

It's pretty standard to make clicking on a tag take you to whatever page corresponds to filtering for that tag; could we get that done on this page too? ]]

plehegar avatar Aug 06 '18 12:08 plehegar

@plehegar, point your commenter to #18

tripu avatar Aug 06 '18 14:08 tripu