Declined
Last Updated: 31 Oct 2024 14:05 by ADMIN
AGB
Created on: 26 Sep 2024 07:55
Category: Grid
Type: Bug Report
0
Grid Checkboxes - Accessibility Issue
Hi Guys,

Have just tripped over an issue with grid checkboxes whereby they cannot be accessed via the keyboard.

To illustrate

    - Run the following dojo
           https://dojo.telerik.com/ojODosUL

    - Select any checkbox then try tabbing to the next ... It doesn't happen.

If you look at the checkboxes using the browser's dev tools you will see the header and cell checkbox inputs have been assigned the attribute tabindex="-1" so it's no wonder they cannot by accessed.

This regression seems to have been introduced with version 2022.2.802

Looking at the release notes for this version I don't see any mention of this breaking change so it looks like its another bug which has been kicking around for a while which your QA accessibility testing hasn't picked up on.

Regards
Alan

8 comments
ADMIN
Martin
Posted on: 31 Oct 2024 14:05

Hello, Alan,

I have created a separate bug report for the navigation when the focus is on the command buttons. 

I have also updated your Telerik Points as a small token of gratitude for helping us discover the issue.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

ADMIN
Martin
Posted on: 24 Oct 2024 08:59

Hello, Alan,

I had another chat with a developer colleague, and indeed the behaviour you described is not the expected one. Generally, tabbing through the buttons in a cell shouldn't result in navigation to the buttons of another cell. Such key sequence is not a valid one, and that is what is preventing the Esc key from exiting from the current cell, and navigate to the rest of the row.

The topic would be brought up within our accessibility team on their next meeting to discuss trapping the focus within the current cell buttons. I will get back to you when we have more feedback to share on the topic.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

AGB
Posted on: 17 Oct 2024 08:54
Hi Neli,

Thanks for discussing this with the developers and raising the priority of my seven year old bug.
Hopefully I don't have to wait another seven years for it to be fixed.

But I'm afraid to say even your initial posting to use the

    navigatable: true,

property has accessibility issues as well.

Let me explain...

- Run the following dojo

    https://dojo.telerik.com/TQIkRyap

- Select the first cell.

- Hit the enter key to focus the first Edit button.
  Which I have to say is not very intuitive for users especially having to hit Esc to return to grid keyboard navigation.

- Hit Tab a few times so the focus moves to the Edit button on row three.

- Now hitting escape does nothing.
  As a user I would expect the current cell to get focus so I could continue keyboard navigation.

Which all means I have to tell my users that without a pointing device grid interaction via the keyboard is fundamentally flawed and does not work in an intuitive and consistent manner.

Regards
Alan
ADMIN
Neli
Posted on: 17 Oct 2024 08:09

Hello Alan,

I discussed the thread with a developer from the team. Although tabbing through the checkboxes has been possible with some old versions, it is not the expected behavior. The current behavior is expected, and the keyboard navigation in the Grid is possible only when the navigatable option is enabled. Thus to tab through the selectable checkboxes in the Grid, with the latest Kendo versions, you will need to either enable the navigatable option or use the suggested workaround. 

Regarding the issue with the locked column and displaying a checkbox using columns.template the bug has not been fixed due to other issues in our priority queue with higher severity.  I increased the priority of the item, so it could take precedence over other issues in our priority queue. 

Regards,


Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

AGB
Posted on: 10 Oct 2024 08:30
Hi Neli,

Your solution is fine for grids when the checkbox column is not locked.

As soon as the checkbox column is locked and you start tabbing the two sides get out of sync.

See https://dojo.telerik.com/zknITody

This was a problem which I reported over seven years ago

https://www.telerik.com/forums/frozen-column-row-alignment-issues---part-ii

Which still has NOT been addressed

https://github.com/telerik/kendo-ui-core/issues/3175

Regards
Alan
ADMIN
Neli
Posted on: 10 Oct 2024 07:30

Hi Alan,

You could set different values to the tabindex and navigate using the Tab key as demonstrated below:

$('.k-checkbox').attr('tabindex', 1)

Here is such a Dojo example - https://dojo.telerik.com/AUZUiTra.

Or if you want to set different values for the tabindex you could use the following approach:

var checkboxes = [...$('.k-grid .k-checkbox')]
checkboxes.forEach((c,index) => {$(c).attr('tabindex', ++index )})

Here is such an example - https://dojo.telerik.com/GgaNJUOa.

I remain at your disposal if any additional questions arise.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

AGB
Posted on: 03 Oct 2024 07:40
Hi Neli,

I'm well aware of the navigatable property but I don't want to navigate the whole grid on a cell by cell basis I just want to allow navigation of the check-box cell via the tab key.

Prior to version 2022.2.802 this was possible because the check-boxes were not restricted with a tabindex=-1

So I'm afraid to say this is another breaking change that has been introduced on a whim without informing you user community.

Regards
Alan.
ADMIN
Neli
Posted on: 03 Oct 2024 07:22

Hi Alan,

Please note that in order for the keyboard navigation to be in the Grid the navigatable property should be set to true

navigatable: true,

- https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/navigatable

When the Keyboard Navigation is enabled you can navigate between the cells using the arrow keys and check/uncheck the checkboxes using the 'Space' key. You could also take a look at the following link in the Grid documentation:

- https://docs.telerik.com/kendo-ui/controls/grid/accessibility/key-nav 

Let me know in case you have any additional questions.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.