Skip to content

Conversation

@smhigley
Copy link
Contributor

@smhigley smhigley commented Jun 2, 2023

Previous Behavior

Within sections, ContextualMenu included headers & dividers in the item index & total calculation. This causes incorrect aria-posinset and aria-setsize values.

New Behavior

ContextualMenu uses the same logic it does for calculating index & total outside of sections, for items within sections.

Copy link
Member

@GeoffCoxMSFT GeoffCoxMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 2, 2023

📊 Bundle size report

🤖 This report was generated against 4a9f03c96b04bd9cca11b7718a3f7f60bf78d2ee

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 2, 2023

🕵 fluentuiv8 No visual regressions between this PR and main

@size-auditor
Copy link

size-auditor bot commented Jun 2, 2023

Asset size changes

Project Bundle Baseline Size New Size Difference
office-ui-fabric-react fluentui-react-Dialog 201.963 kB 202.1 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-DocumentCard 208.07 kB 208.207 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-Nav 180.456 kB 180.593 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-Panel 191.546 kB 191.683 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-Pickers 283.668 kB 283.805 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-Pivot 181.43 kB 181.567 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-Grid 173.106 kB 173.243 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-SearchBox 180.17 kB 180.307 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-SelectedItemsList 223.626 kB 223.763 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-FloatingPicker 233.218 kB 233.355 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-Facepile 202.98 kB 203.117 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-SpinButton 183.851 kB 183.988 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-Dropdown 224.275 kB 224.412 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-Breadcrumb 193.068 kB 193.205 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-MessageBar 181.795 kB 181.932 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-SwatchColorPicker 182.919 kB 183.056 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-TimePicker 231.349 kB 231.486 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-TeachingBubble 196.968 kB 197.105 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-Button 187.363 kB 187.5 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-CommandBar 194.18 kB 194.317 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-ButtonGrid 173.106 kB 173.243 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-ComboBox 241.197 kB 241.334 kB ExceedsBaseline     137 bytes
office-ui-fabric-react fluentui-react-ContextualMenu 147.813 kB 147.948 kB ExceedsBaseline     135 bytes

ExceedsTolerance Over Tolerance (1024 B) ExceedsBaseline Over Baseline BelowBaseline Below Baseline New New Deleted  Removed 1 kB = 1000 B

Baseline commit: 4a9f03c96b04bd9cca11b7718a3f7f60bf78d2ee (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 2, 2023

Perf Analysis (@fluentui/react)

No significant results to display.

All results

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

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 3, 2023

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:

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

@behowell behowell merged commit 1acc2cd into microsoft:master Jun 7, 2023
@behowell
Copy link
Contributor

behowell commented Jun 7, 2023

Force-merging. Merging was incorrectly blocked due to a phantom comment thread that can't be resolved.

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@fluentui/[email protected] has been released which incorporates this pull request.:tada:

Handy links:

marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Jun 13, 2023
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants