-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat: Dropdown a11y overview section #24933
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
Conversation
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 942df8c6e915e7edcebe62f5431488dce09303d8 (build) |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 77b4e19:
|
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 1153 | 1211 | 5000 | |
| Button | mount | 942 | 829 | 5000 | |
| FluentProvider | mount | 1544 | 1453 | 5000 | |
| FluentProviderWithTheme | mount | 560 | 556 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 518 | 537 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 628 | 629 | 10 | |
| MakeStyles | mount | 1664 | 1729 | 50000 | |
| SpinButton | mount | 2237 | 2454 | 5000 |
5939d54 to
cad9cc0
Compare
packages/react-components/react-combobox/src/stories/Dropdown/DropdownAccessibility.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-combobox/src/stories/Dropdown/DropdownAccessibility.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-combobox/src/stories/Dropdown/DropdownAccessibility.md
Outdated
Show resolved
Hide resolved
| ### Do | ||
|
|
||
| - **Provide a label for the Dropdown.** | ||
| - **Set the Option's `value` prop if the content contains JSX.** The Option value is used for keyboard accessibility to enable users to type a letter or string and jump to the matching option. The value is calculated from the children by default, but if the Option contains JSX, the `value` prop should be used to directly provide a string value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Value (or label) is going to be required, so this will need to be reworded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'll make the update in the other PR, so there's no mismatch between the doc and the behavior in the meantime
micahgodbolt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved with some feedback
Related to #24917
This adds a set of accessibility Do's/Don'ts to the Dropdown docs page, immediately after Best Practices, and links to the full spec page. The link URLs themselves depend on the related spec PR being merged first.