summaryrefslogtreecommitdiff
path: root/js/cabinet.js
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-10-27 12:07:08 +0100
committerJuuso Lapinlampi <wub@partyvan.eu>2015-10-27 12:07:08 +0100
commite41a0b11fd386c487e15048aa829f471ceb4c1fa (patch)
treeb2ab1ebf5ff9b92e4ef99b70b47f9f5675dae50c /js/cabinet.js
parent6376b0365a9bd90bcd30f59b460784d896fac0f6 (diff)
Stop placing #upload-input off-screen, don't display it
Problems with placing #upload-input off-screen is that keyboard navigation (tab) will gain focus of the upload buttons twice. Hiding the other upload button (the <input> element) off-screen makes no sense because no explanation is given. Hide it with `display: none;`. Considering screen reader users, the <button> element (with a future <label> element) should hopefully convey enough information about it's purpose. `tabindex="-1"` would be an alternative, but would require placing content off-screen.
Diffstat (limited to 'js/cabinet.js')
0 files changed, 0 insertions, 0 deletions