question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Accessibility with tabs

See original GitHub issue

The input element prevents the user from tabbing through a form, which is problematic for accessibility. Glancing at the code, I think this is coming from:

allowTyping (event) {
  if (!this.typeable) {
    event.preventDefault()
    return false
  }
  return true
},

(DateInput.vue)

which is triggered on keydown from the input element. I’m not sure of the consequences of this, but perhaps we could skip the body of the function if the key code is 9.

Related to this, I suspect it would also be appropriate to close the calendar whenever tab is pressed. That involves adding a line to parseTypedDate.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:8
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
ershwetabansalcommented, Oct 15, 2018

@whossname The tabbing issue seems to be resolved in 1.5.3. But considering accessibility, I would think that we should also open the calendar on pressing enter key while input box is focused. Do we have any way to do that currently?

1reaction
tuan-buicommented, Oct 3, 2019

Anyone happen to be looking into adding in tabbing for accessibility, specifically for the day picker?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Example of Tabs with Automatic Activation | APG | WAI
Example of Tabs with Manual Activation: A tabs widget where users activate a tab and ... Provides an accessible name for the tab...
Read more >
Tabs | Accessibility Guidelines
Tabs. Tabs, which are very similar to accordions, are also common web design structures used to organize and hide content, so as not...
Read more >
ARIA: tab role - Accessibility - MDN Web Docs - Mozilla
An element with the tab role controls the visibility of an associated element with the tabpanel role. The common user experience pattern is ......
Read more >
Tabbed Interfaces
Both a table of content and a list of tabs allow the user to choose between distinct sections of content. Table of contents...
Read more >
A11Y 101: fully acessible tabs
How can we create fully accessible tabs? ... And looking at that from an accessibility point of view, I could see many things...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found