Open Bug 2041789 Opened 6 months ago Updated 13 days ago

Create combobox accessibles for customizable select elements

Categories

(Core :: Disability Access APIs, task)

task

Tracking

()

People

(Reporter: eeejay, Assigned: eeejay)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

Attachments

(3 external files)

Add support for customizable select and make them work similar to regular selects with the exception of adding a new calculated value that uses the embedded button's contents.

Depends on: 2049526
Depends on: 2050939
Attachment #9589019 - Attachment description: WIP: Bug 2041789 - WIP: Intro customizable select a11y support. → Bug 2041789 - P1: Intro customizable select a11y support. r?#accessibility-platform-reviewers

A picker dropdown that does not loosely conform to a listbox (options,
or groups of options) should be considered a dialog instead of a
listbox.

In this implementation the determination of conformance happens when the
picker's a11y tree is created. If the content model changes because of a
mutation (eg. removal of a non-listbox accessible), the picker role will
not change. Because of the transient nature of the dropdown that doesn't
seem like a huge concern.

This patch introduces PreprocessSubtreeCreation and
PostprocessSubtreeCreation which give accessibles an opportunity to
signal to their descendants in what kind of context they are being
created, and an inverse signal to an ancestor about the nature of its
subtree. This allows accessibles to determine if they are being created
inside a picker and, if they are of a non-listbox-child type, signal to
the picker accessible that its role should be dialog.

This implementation is not perfect, it won't work with aria-owns, but it
is lightweight enough to not require extra tree traversals for a change
that is relatively trivial and transient.

Now that we removed invisible combobox subtrees, and implemented
base-select, we can clean up some obsolete uses of HTMLComboboxListAccessible and friends.

Blocks: 2093145
Blocks: 2093151
Depends on: 2071782
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: