Commit Graph

13 Commits

Author SHA1 Message Date
rr- d5e197e6ea client/general: add empty href for link buttons
In e464e69 I removed href='#' but I noticed that it broke some things.
Readding href serves two purposes:

- it makes links reachable with Tab key
- it makes links clickable with Enter key

The alternative to this approach was to introduce [tabindex] and [role]
attributes. But not only using tabindex=0 with <a/> is questionable,
it'd require adding a keyboard handler that'd intercept space and return
key presses and simulated link clicks. Since it's best to leave this
kind of thing to the native UI, I went with readding hrefs instead. I
believe that hash hrefs, even though being a common practice, are silly,
so I decided to settle down with empty hrefs.

As a bonus, I added a snippet that prevents middle mouse clicks from
opening such links/buttons in new tabs, which was the motivation for
e464e69.
2016-08-22 01:40:30 +02:00
rr- d5a00fe4b9 client/posts: add note editing 2016-08-05 23:02:41 +02:00
rr- 0c64d1fe1c client/posts: add post deleting 2016-08-02 12:27:01 +02:00
rr- 179cf57cb9 client/posts: add post featuring 2016-08-02 12:27:01 +02:00
rr- 51ea06d837 client/posts: add expanders to edit sidebar 2016-08-02 12:27:01 +02:00
rr- 9ee973ce1c client/posts: add custom thumbnail discarding 2016-07-31 23:54:29 +02:00
rr- 1ed7ad4173 client/posts: add simple thumbnail editing 2016-07-28 23:10:40 +02:00
rr- 3d8eaab57a client/posts: add post content editing 2016-07-27 22:27:33 +02:00
rr- b378ce7ede client/posts: move relations above tags 2016-07-26 20:38:12 +02:00
rr- 8a68e182fd client/posts: implement loop video flag 2016-07-26 20:38:12 +02:00
rr- 865c4f3b79 client/posts: respect edit privileges in sidebar 2016-07-26 20:38:12 +02:00
rr- 7488abb332 client/posts: add simple editing 2016-07-17 20:32:00 +02:00
rr- 07329d33a4 client/posts: add post view (without comments yet) 2016-06-08 22:43:03 +02:00