Skip to content

Conversation

@smhigley
Copy link
Contributor

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.

@smhigley smhigley self-assigned this Sep 23, 2022
@fabricteam
Copy link
Collaborator

fabricteam commented Sep 23, 2022

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-combobox
Combobox (including child components)
78.086 kB
24.988 kB
react-combobox
Dropdown (including child components)
77.373 kB
24.891 kB
react-components
react-components: Button, FluentProvider & webLightTheme
62.951 kB
17.675 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
190.427 kB
53.087 kB
react-components
react-components: FluentProvider & webLightTheme
33.456 kB
11.029 kB
react-portal-compat
PortalCompatProvider
5.857 kB
1.978 kB
🤖 This report was generated against f72f97809da552c0898a6d24e90e71f3f8c88f9a

@size-auditor
Copy link

size-auditor bot commented Sep 23, 2022

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 942df8c6e915e7edcebe62f5431488dce09303d8 (build)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 23, 2022

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:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 23, 2022

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

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

@smhigley smhigley force-pushed the dropdown-a11y-overview branch from 5939d54 to cad9cc0 Compare October 24, 2022 23:07
@smhigley smhigley marked this pull request as ready for review October 24, 2022 23:07
@smhigley smhigley requested a review from a team as a code owner October 24, 2022 23:07
### 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.
Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Member

@micahgodbolt micahgodbolt left a 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

@smhigley smhigley merged commit 7fde358 into microsoft:master Nov 16, 2022
NotWoods pushed a commit to NotWoods/fluentui that referenced this pull request Nov 18, 2022
Hotell pushed a commit to Hotell/fluentui that referenced this pull request Feb 9, 2023
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

Successfully merging this pull request may close these issues.

4 participants