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

Ipywidgets grid of buttons is not navigatable by screenreader comfortably. #3954

Open
denizsincar29 opened this issue Oct 16, 2024 · 0 comments

Comments

@denizsincar29
Copy link

Intro

Hello. I'm a blind user and I use screenreader on my PC. I was trying to make a game field in colab, but ended up with a item by item navigation.

Description

The grid in ipywidgets is not so good at accessibility with screenreaders for blind. I mean you can access each element of a grid, with tab key, but you can't navigate vertically and horizontally with arrow keys using screenreader.

Reproduce

  1. Create a colab notebook and paste this code:
import ipywidgets as widgets
list64 = [f"{chr(col)}{row}" for col in range(ord('a'), ord('h') + 1) for row in range(1, 9)]
items = [widgets.Button(label = str(i)) for i in list64]
widgets.GridBox(items, layout=widgets.Layout(grid_template_columns="repeat(8, 100px)"))
  1. Turn on NVDA screenreader and run the cell.
  2. Focus the grid with tab key, press insert+spacebar, and press arrow keys.

Congratulations, you get no movement with arrow keys.

Expected behavior

Screenreader announces all fields when moving on the field, and arrow keys move inside.
Also, would be great to add accessibility hints for each button. E.g. the grid is shown as white or black disks, but screenreader says: "a5 empty", "a6 black", "b2 white"

Context

I use google colab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant