Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] Date picker is not accessible for keyboard user #24019

Open
zwiastunsw opened this issue Feb 25, 2019 · 13 comments
Open

[4.0] Date picker is not accessible for keyboard user #24019

zwiastunsw opened this issue Feb 25, 2019 · 13 comments

Comments

@zwiastunsw
Copy link
Contributor

zwiastunsw commented Feb 25, 2019

Steps to reproduce the issue

  1. Go to Joomla Backend
  2. Go to Content/Article/New or Edit / Publishing tab
  • Use Tab key to move focus to calendar field
  • Use Down arrow to open calendar dialog (not work, use tab to move fokus to calendar icon and use Spacebar to open calendar dialog)
  • Use Down arrow to move focus to current date
  • Use Left/Right/Down/Up arrows to select date
  • Use Tab key or Shift + Tab key to move focus to Clear/Today/Close buttons or to select month/year (not works)
  • Use Space/Enter key to place selected date into field

Expected result

You should perform all of the following operations

Actual result

You can only select a date. You cannot select the month, year, time selection options, buttons Clear/Today/Close.

Additional comments

See: Date Picker Example Using ARIA 1.1 Combobox as an example of accessible date picker

@dgrammatiko
Copy link
Contributor

I think @C-Lodder is working on this

@hardik-codes
Copy link
Contributor

May I assist you in this @C-Lodder if you are working on it ?

@C-Lodder
Copy link
Member

C-Lodder commented Feb 27, 2019

When get some time again I will start on it again after a first failed attempt. The code isn't documented at all so I'm in 2 minds whether or not to try again or extend something that's already out there

@C-Lodder
Copy link
Member

@hardik-codes - If you're comfortable with JS and familiar with Custom Elements, feel free to take it on. It'll be fairly big task

@ghost ghost added the J4 Issue label Apr 4, 2019
@ghost ghost changed the title [4.0][a11y]Date picker is not accessible for keyboard user [4.0] [a11y] Date picker is not accessible for keyboard user Apr 4, 2019
@ghost ghost added the a11y Accessibility label Apr 4, 2019
@ghost ghost changed the title [4.0] [a11y] Date picker is not accessible for keyboard user [4.0] Date picker is not accessible for keyboard user Apr 19, 2019
@brianteeman
Copy link
Contributor

There are several examples of fully accessible datepickers here https://www.webaxe.org/accessible-date-pickers/

@brianteeman
Copy link
Contributor

and there is an even better solution which is zero maintenance and fully accessible - however it only supports gregorian calendars. I assume @infograf768 that this would not be acceptable unless there was some way for it to fall back to a scripted version for non-gregorian calendars?

@dgrammatiko
Copy link
Contributor

@brianteeman AFAIK Joomla using a date-time picker not a date-picker so your suggestions are not fit

@brianteeman
Copy link
Contributor

The only solution I can find is to separate the date and time

@zwiastunsw
Copy link
Contributor Author

zwiastunsw commented Feb 10, 2020

Unfortunately, I also don't know a good solution for the date and time selector in one component. Creating a separate date and time selector seems to be a good idea.
HTML5 offers simple html controls for date and time selection (input type="date" and input type="time"). These have limitations, but are accessible and well supported by browsers.
It can also be assumed that if the user can enter the date and time in the text field, the accessibility requirements are met. However, you need to make sure that you have accurate information about the date and time format.

Maybe this will help

@C-Lodder
Copy link
Member

@zwiastunsw
Copy link
Contributor Author

@C-Lodder : I know Safari does not yet support these controls as expected, but it will display text fields. So accessibility will also be provided.

@brianteeman
Copy link
Contributor

As far as I am aware the native html date and datetime pickers do not support non-gregorian calendars

@zwiastunsw
Copy link
Contributor Author

I don't know that. I'm sorry.

@joomla-cms-bot joomla-cms-bot removed the a11y Accessibility label Jul 22, 2020
@Hackwar Hackwar added the bug label Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants