-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix: ContextualMenu indexing in sections #28127
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
GeoffCoxMSFT
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.
LGTM
📊 Bundle size report🤖 This report was generated against 4a9f03c96b04bd9cca11b7718a3f7f60bf78d2ee |
🕵 fluentuiv8 No visual regressions between this PR and main |
Asset size changes
Baseline commit: 4a9f03c96b04bd9cca11b7718a3f7f60bf78d2ee (build) |
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| BaseButton | mount | 618 | 657 | 5000 | |
| Breadcrumb | mount | 1676 | 1667 | 1000 | |
| Checkbox | mount | 1680 | 1662 | 5000 | |
| CheckboxBase | mount | 1480 | 1474 | 5000 | |
| ChoiceGroup | mount | 2955 | 2911 | 5000 | |
| ComboBox | mount | 644 | 651 | 1000 | |
| CommandBar | mount | 6202 | 6200 | 1000 | |
| ContextualMenu | mount | 13158 | 13369 | 1000 | |
| DefaultButton | mount | 754 | 753 | 5000 | |
| DetailsRow | mount | 2170 | 2155 | 5000 | |
| DetailsRowFast | mount | 2150 | 2139 | 5000 | |
| DetailsRowNoStyles | mount | 2000 | 1986 | 5000 | |
| Dialog | mount | 2618 | 2640 | 1000 | |
| DocumentCardTitle | mount | 231 | 241 | 1000 | |
| Dropdown | mount | 1956 | 1975 | 5000 | |
| FocusTrapZone | mount | 1122 | 1124 | 5000 | |
| FocusZone | mount | 1071 | 1056 | 5000 | |
| GroupedList | mount | 41096 | 41592 | 2 | |
| GroupedList | virtual-rerender | 19834 | 19885 | 2 | |
| GroupedList | virtual-rerender-with-unmount | 50348 | 50141 | 2 | |
| GroupedListV2 | mount | 235 | 218 | 2 | |
| GroupedListV2 | virtual-rerender | 204 | 199 | 2 | |
| GroupedListV2 | virtual-rerender-with-unmount | 234 | 231 | 2 | |
| IconButton | mount | 1092 | 1081 | 5000 | |
| Label | mount | 337 | 336 | 5000 | |
| Layer | mount | 2730 | 2712 | 5000 | |
| Link | mount | 392 | 393 | 5000 | |
| MenuButton | mount | 923 | 930 | 5000 | |
| MessageBar | mount | 21220 | 21243 | 5000 | |
| Nav | mount | 1912 | 1885 | 1000 | |
| OverflowSet | mount | 776 | 776 | 5000 | |
| Panel | mount | 1739 | 1756 | 1000 | |
| Persona | mount | 755 | 761 | 1000 | |
| Pivot | mount | 876 | 886 | 1000 | |
| PrimaryButton | mount | 851 | 843 | 5000 | |
| Rating | mount | 4700 | 4583 | 5000 | |
| SearchBox | mount | 899 | 912 | 5000 | |
| Shimmer | mount | 1877 | 1884 | 5000 | |
| Slider | mount | 1330 | 1324 | 5000 | |
| SpinButton | mount | 2889 | 2801 | 5000 | |
| Spinner | mount | 400 | 400 | 5000 | |
| SplitButton | mount | 1802 | 1841 | 5000 | |
| Stack | mount | 404 | 417 | 5000 | |
| StackWithIntrinsicChildren | mount | 867 | 837 | 5000 | |
| StackWithTextChildren | mount | 2641 | 2648 | 5000 | |
| SwatchColorPicker | mount | 6059 | 5991 | 5000 | |
| TagPicker | mount | 1457 | 1402 | 5000 | |
| Text | mount | 368 | 388 | 5000 | |
| TextField | mount | 936 | 923 | 5000 | |
| ThemeProvider | mount | 844 | 823 | 5000 | |
| ThemeProvider | virtual-rerender | 579 | 593 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 1280 | 1281 | 5000 | |
| Toggle | mount | 594 | 643 | 5000 | |
| buttonNative | mount | 191 | 191 | 5000 |
|
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 c824f19:
|
|
Force-merging. Merging was incorrectly blocked due to a phantom comment thread that can't be resolved. |
|
🎉 Handy links: |
* master: applying package updates doc: Remove wrong recommendation from input (microsoft#28168) fix: Outline color now respects OS force colors settings (microsoft#28182) Datepicker onCalendarOpenStateChange prop (microsoft#28136) feat(react-file-type-icons): Add getFileTypeIconAsUrl utility (microsoft#27336) applying package updates [FIX] Updates selection dot and label positioning for ChoiceGroupOption when an Image or Icon is present. (microsoft#28173) chore(react-infobutton): Rename InfoTip to InfoIcon (microsoft#28177) fix(react-datepicker-compat): Make DatePicker Compat stories SSR safe (microsoft#28017) Added `tab` focus mode to the Breadcrumb (microsoft#28046) docs: Add usable documentation (microsoft#28155) applying package updates Fix up rebase code (microsoft#27864) fix: ContextualMenu indexing in sections (microsoft#28127) applying package updates fix: Layer sets focus visible classname for its FocusRectsProvider (microsoft#28157) docs(react-infobutton): Update stories to show better guidance (microsoft#28144) fix(react-avatar): Do not render the image when src prop is undefined (microsoft#28146) feat(react-datepicker-compat): Add null to value prop and handle controlled cases correctly (microsoft#28056)
Previous Behavior
Within sections, ContextualMenu included headers & dividers in the item index & total calculation. This causes incorrect
aria-posinsetandaria-setsizevalues.New Behavior
ContextualMenu uses the same logic it does for calculating index & total outside of sections, for items within sections.