Skip to content
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

ToggleButton: Removing legacy patterns from converged component. #18506

Merged
merged 3 commits into from Jun 10, 2021

Conversation

khmakoto
Copy link
Member

Pull request checklist

Description of changes

Follow-up of #18468, #18497 and #18498.

This PR removes the legacy patterns that were being used in the ToggleButton component in @fluentui/react-button, instead opting for using the patterns adopted by other converged components such as Avatar in @fluentui/react-avatar.

@khmakoto khmakoto requested review from dzearing and a team June 10, 2021 01:52
@khmakoto khmakoto self-assigned this Jun 10, 2021
@khmakoto khmakoto added this to In progress in CXE Redmond - @microsoft/cxe-red via automation Jun 10, 2021
@size-auditor
Copy link

size-auditor bot commented Jun 10, 2021

Asset size changes

Project Bundle Baseline Size New Size Difference
office-ui-fabric-react fluentui-react-components-ToggleButton 53.758 kB 53.544 kB BelowBaseline     -214 bytes

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

Baseline commit: 3a08bcacbd059fbc1d528607639576c4512433c7 (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 10, 2021

Perf Analysis (@fluentui/react)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 789 806 5000
BaseButton mount 894 891 5000
Breadcrumb mount 2581 2571 1000
ButtonNext mount 523 502 5000
Checkbox mount 1490 1493 5000
CheckboxBase mount 1263 1254 5000
ChoiceGroup mount 4626 4648 5000
ComboBox mount 958 945 1000
CommandBar mount 9923 9961 1000
ContextualMenu mount 5997 5997 1000
DefaultButton mount 1115 1079 5000
DetailsRow mount 3652 3718 5000
DetailsRowFast mount 3677 3742 5000
DetailsRowNoStyles mount 3462 3489 5000
Dialog mount 2098 2147 1000
DocumentCardTitle mount 147 140 1000
Dropdown mount 3183 3183 5000
FocusTrapZone mount 1710 1750 5000
FocusZone mount 1793 1774 5000
IconButton mount 1711 1689 5000
Label mount 332 326 5000
Layer mount 1782 1767 5000
Link mount 464 463 5000
MakeStyles mount 1792 1787 50000
MenuButton mount 1426 1413 5000
MessageBar mount 1990 1983 5000
Nav mount 3182 3224 1000
OverflowSet mount 1029 1044 5000
Panel mount 1332 2028 1000
Persona mount 799 803 1000
Pivot mount 1378 1404 1000
PrimaryButton mount 1247 1272 5000
Rating mount 7424 7520 5000
SearchBox mount 1247 1244 5000
Shimmer mount 2494 2479 5000
Slider mount 1918 1941 5000
SpinButton mount 4905 4971 5000
Spinner mount 410 410 5000
SplitButton mount 3108 3110 5000
Stack mount 492 484 5000
StackWithIntrinsicChildren mount 1533 1548 5000
StackWithTextChildren mount 4490 4510 5000
SwatchColorPicker mount 10097 10130 5000
Tabs mount 1378 1378 1000
TagPicker mount 2415 2394 5000
TeachingBubble mount 11754 11772 5000
Text mount 401 428 5000
TextField mount 1370 1384 5000
ThemeProvider mount 1181 1186 5000
ThemeProvider virtual-rerender 587 604 5000
ThemeProviderNext mount 7048 7005 5000
Toggle mount 789 800 5000
buttonNative mount 112 116 5000

Perf Analysis (@fluentui/react-northstar)

Perf tests with no regressions
Scenario Current PR Ticks Baseline Ticks Ratio
AccordionMinimalPerf.default 151 140 1.08:1
AnimationMinimalPerf.default 417 395 1.06:1
ChatMinimalPerf.default 623 585 1.06:1
FormMinimalPerf.default 402 379 1.06:1
LabelMinimalPerf.default 393 370 1.06:1
HeaderMinimalPerf.default 367 350 1.05:1
SegmentMinimalPerf.default 356 340 1.05:1
TableMinimalPerf.default 409 390 1.05:1
AttachmentMinimalPerf.default 156 150 1.04:1
TreeWith60ListItems.default 171 164 1.04:1
FlexMinimalPerf.default 288 280 1.03:1
HeaderSlotsPerf.default 765 742 1.03:1
PortalMinimalPerf.default 183 178 1.03:1
TextMinimalPerf.default 345 334 1.03:1
AttachmentSlotsPerf.default 1140 1116 1.02:1
ImageMinimalPerf.default 374 366 1.02:1
InputMinimalPerf.default 1275 1247 1.02:1
ItemLayoutMinimalPerf.default 1255 1230 1.02:1
MenuMinimalPerf.default 847 834 1.02:1
ToolbarMinimalPerf.default 929 910 1.02:1
TreeMinimalPerf.default 793 777 1.02:1
BoxMinimalPerf.default 347 342 1.01:1
CheckboxMinimalPerf.default 2730 2710 1.01:1
DatepickerMinimalPerf.default 5351 5314 1.01:1
DialogMinimalPerf.default 754 746 1.01:1
EmbedMinimalPerf.default 4133 4102 1.01:1
GridMinimalPerf.default 336 332 1.01:1
ReactionMinimalPerf.default 367 362 1.01:1
SplitButtonMinimalPerf.default 3737 3707 1.01:1
TableManyItemsPerf.default 1895 1875 1.01:1
CustomToolbarPrototype.default 3850 3801 1.01:1
VideoMinimalPerf.default 610 602 1.01:1
AlertMinimalPerf.default 271 270 1:1
ButtonOverridesMissPerf.default 1671 1669 1:1
CardMinimalPerf.default 540 541 1:1
ChatWithPopoverPerf.default 354 354 1:1
DividerMinimalPerf.default 345 344 1:1
DropdownManyItemsPerf.default 681 681 1:1
DropdownMinimalPerf.default 3089 3080 1:1
ListNestedPerf.default 544 545 1:1
ListWith60ListItems.default 634 633 1:1
MenuButtonMinimalPerf.default 1542 1549 1:1
RosterPerf.default 1131 1126 1:1
ProviderMinimalPerf.default 999 1004 1:1
RadioGroupMinimalPerf.default 437 437 1:1
SkeletonMinimalPerf.default 350 351 1:1
SliderMinimalPerf.default 1588 1586 1:1
TextAreaMinimalPerf.default 483 485 1:1
ButtonMinimalPerf.default 163 164 0.99:1
ChatDuplicateMessagesPerf.default 292 295 0.99:1
LayoutMinimalPerf.default 353 357 0.99:1
PopupMinimalPerf.default 561 566 0.99:1
ProviderMergeThemesPerf.default 1676 1698 0.99:1
IconMinimalPerf.default 604 613 0.99:1
AvatarMinimalPerf.default 191 194 0.98:1
CarouselMinimalPerf.default 448 459 0.98:1
ListMinimalPerf.default 503 513 0.98:1
LoaderMinimalPerf.default 677 688 0.98:1
RefMinimalPerf.default 233 238 0.98:1
TooltipMinimalPerf.default 958 979 0.98:1
ButtonSlotsPerf.default 523 537 0.97:1
StatusMinimalPerf.default 652 669 0.97:1
ListCommonPerf.default 597 626 0.95:1

CXE Redmond - @microsoft/cxe-red automation moved this from In progress to Reviewer approved Jun 10, 2021
@khmakoto khmakoto enabled auto-merge (squash) June 10, 2021 17:46
@khmakoto khmakoto merged commit 0b25e8d into microsoft:master Jun 10, 2021
CXE Redmond - @microsoft/cxe-red automation moved this from Reviewer approved to Done Jun 10, 2021
@khmakoto khmakoto deleted the toggleButtonCleanup branch June 10, 2021 18:13
@msft-fluent-ui-bot
Copy link
Collaborator

🎉@fluentui/react-button@v9.0.0-alpha.47 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants