Skip to content

Discussion of the application of roles such as listbox, checkbox, and textbox #9313

@microbit-robert

Description

@microbit-robert

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

It feels like roles such as listbox, checkbox and textbox may be incorrectly applied in the workspace. Elements with the listbox role work to some extent in that Space / Enter opens the dropdown, but the down arrow does not open the dropdown and typing characters does not open the dropdown or change its value. Typing when focused on something with the role of textbox has no effect. You have to press Enter / Space before focus is actually moved into an element that supports entering text.

Are elements that currently have these roles more like buttons to enable the editing of a field and should they have different semantics?

Reproduction steps

  1. Go to the screen reader test page
  2. Navigate to the width field of the create canvas block
  3. The screen reader will announce "edit text" as a result of the textbox role being applied to the element, but at this point, typing characters to change the value of the field has no effect. Is this misleading?

Stack trace

Screenshots

No response

Browsers

No response

Metadata

Metadata

Assignees

Labels

issue: bugDescribes why the code or behaviour is wrong

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions