Skip to content

Commit da39792

Browse files
committed
clarify the combobox/menu by w3.org
1 parent 41fbd31 commit da39792

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

web_src/js/features/aria.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,18 @@ There are different solutions:
4848

4949
## Fomantic UI Dropdown
5050

51-
When the dropdown has input elements, use `role=combobox`, otherwise use `role=menu` (see `aria.js`)
51+
When the dropdown has input elements, use `role=combobox`, otherwise use `role=menu` (see `aria.js`) for actions.
52+
53+
Reference:
54+
55+
* Combobox:
56+
* https://www.w3.org/WAI/ARIA/apg/patterns/combobox/
57+
* A combobox is an **input widget** with an associated popup that enables users to select a value for the combobox from
58+
a collection of possible values. In some implementations, the popup presents allowed values, while in other implementations,
59+
the popup presents suggested values, and users may either select one of the suggestions or type a value.
60+
* Menu:
61+
* https://www.w3.org/WAI/ARIA/apg/patterns/menubar/
62+
* A menu is a widget that offers a list of choices to the user, such as a set of **actions or functions**.
5263

5364
```html
5465
<!-- read-only dropdown -->

0 commit comments

Comments
 (0)