react-radio: Radio item implementation#20626
Merged
tringakrasniqi merged 15 commits intoNov 29, 2021
Merged
Conversation
Collaborator
📊 Bundle size report🤖 This report was generated against 5a49512b8e33d5a588212069a1f2827b806d584c |
|
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 ba2923b:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: ecdea9fb8c041b82997e1b6f6b8be49882dbd9f2 (build) |
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 1003 | 987 | 5000 | |
| BaseButton | mount | 1052 | 1026 | 5000 | |
| Breadcrumb | mount | 2792 | 2768 | 1000 | |
| ButtonNext | mount | 638 | 650 | 5000 | |
| Checkbox | mount | 1658 | 1644 | 5000 | |
| CheckboxBase | mount | 1402 | 1460 | 5000 | |
| ChoiceGroup | mount | 4914 | 5094 | 5000 | |
| ComboBox | mount | 1063 | 1071 | 1000 | |
| CommandBar | mount | 10293 | 10390 | 1000 | |
| ContextualMenu | mount | 8743 | 8587 | 1000 | |
| DefaultButton | mount | 1285 | 1264 | 5000 | |
| DetailsRow | mount | 3999 | 4019 | 5000 | |
| DetailsRowFast | mount | 3977 | 3909 | 5000 | |
| DetailsRowNoStyles | mount | 3763 | 3740 | 5000 | |
| Dialog | mount | 2728 | 2664 | 1000 | |
| DocumentCardTitle | mount | 275 | 280 | 1000 | |
| Dropdown | mount | 3484 | 3402 | 5000 | |
| FluentProviderNext | mount | 4233 | 4351 | 5000 | |
| FluentProviderWithTheme | mount | 353 | 345 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 207 | 220 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 399 | 383 | 10 | |
| FocusTrapZone | mount | 1925 | 2026 | 5000 | |
| FocusZone | mount | 2018 | 1934 | 5000 | |
| IconButton | mount | 1879 | 1864 | 5000 | |
| Label | mount | 470 | 469 | 5000 | |
| Layer | mount | 3094 | 3139 | 5000 | |
| Link | mount | 597 | 622 | 5000 | |
| MakeStyles | mount | 1894 | 1984 | 50000 | |
| MenuButton | mount | 1633 | 1659 | 5000 | |
| MessageBar | mount | 2106 | 2088 | 5000 | |
| Nav | mount | 3558 | 3474 | 1000 | |
| OverflowSet | mount | 1229 | 1266 | 5000 | |
| Panel | mount | 2673 | 2605 | 1000 | |
| Persona | mount | 920 | 975 | 1000 | |
| Pivot | mount | 1562 | 1569 | 1000 | |
| PrimaryButton | mount | 1438 | 1407 | 5000 | |
| Rating | mount | 7812 | 7916 | 5000 | |
| SearchBox | mount | 1468 | 1478 | 5000 | |
| Shimmer | mount | 2650 | 2667 | 5000 | |
| Slider | mount | 2109 | 2092 | 5000 | |
| SpinButton | mount | 5307 | 5189 | 5000 | |
| Spinner | mount | 569 | 560 | 5000 | |
| SplitButton | mount | 3277 | 3309 | 5000 | |
| Stack | mount | 654 | 614 | 5000 | |
| StackWithIntrinsicChildren | mount | 1859 | 1867 | 5000 | |
| StackWithTextChildren | mount | 4826 | 4733 | 5000 | |
| SwatchColorPicker | mount | 10719 | 10734 | 5000 | |
| TagPicker | mount | 2774 | 2703 | 5000 | |
| TeachingBubble | mount | 13528 | 13299 | 5000 | |
| Text | mount | 544 | 539 | 5000 | |
| TextField | mount | 1487 | 1491 | 5000 | |
| ThemeProvider | mount | 1308 | 1327 | 5000 | |
| ThemeProvider | virtual-rerender | 759 | 751 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 2091 | 2032 | 5000 | |
| Toggle | mount | 968 | 954 | 5000 | |
| buttonNative | mount | 250 | 262 | 5000 |
Perf Analysis (@fluentui/react-northstar)
Perf tests with no regressions
| Scenario | Current PR Ticks | Baseline Ticks | Ratio |
|---|---|---|---|
| ListNestedPerf.default | 599 | 533 | 1.12:1 |
| IconMinimalPerf.default | 624 | 572 | 1.09:1 |
| ButtonSlotsPerf.default | 587 | 550 | 1.07:1 |
| TreeWith60ListItems.default | 188 | 175 | 1.07:1 |
| AttachmentMinimalPerf.default | 161 | 152 | 1.06:1 |
| ListMinimalPerf.default | 529 | 497 | 1.06:1 |
| TooltipMinimalPerf.default | 1051 | 995 | 1.06:1 |
| AnimationMinimalPerf.default | 440 | 421 | 1.05:1 |
| ChatDuplicateMessagesPerf.default | 309 | 293 | 1.05:1 |
| DropdownMinimalPerf.default | 3133 | 2980 | 1.05:1 |
| LabelMinimalPerf.default | 398 | 379 | 1.05:1 |
| TextMinimalPerf.default | 349 | 333 | 1.05:1 |
| VideoMinimalPerf.default | 635 | 613 | 1.04:1 |
| DividerMinimalPerf.default | 369 | 357 | 1.03:1 |
| FormMinimalPerf.default | 402 | 389 | 1.03:1 |
| ListCommonPerf.default | 642 | 624 | 1.03:1 |
| ListWith60ListItems.default | 662 | 642 | 1.03:1 |
| MenuMinimalPerf.default | 874 | 847 | 1.03:1 |
| RadioGroupMinimalPerf.default | 447 | 434 | 1.03:1 |
| TreeMinimalPerf.default | 835 | 811 | 1.03:1 |
| AvatarMinimalPerf.default | 201 | 198 | 1.02:1 |
| ImageMinimalPerf.default | 387 | 381 | 1.02:1 |
| LoaderMinimalPerf.default | 694 | 680 | 1.02:1 |
| SegmentMinimalPerf.default | 341 | 333 | 1.02:1 |
| SliderMinimalPerf.default | 1680 | 1651 | 1.02:1 |
| StatusMinimalPerf.default | 664 | 652 | 1.02:1 |
| TextAreaMinimalPerf.default | 494 | 486 | 1.02:1 |
| ButtonOverridesMissPerf.default | 1675 | 1653 | 1.01:1 |
| CardMinimalPerf.default | 567 | 561 | 1.01:1 |
| DropdownManyItemsPerf.default | 686 | 680 | 1.01:1 |
| GridMinimalPerf.default | 339 | 334 | 1.01:1 |
| LayoutMinimalPerf.default | 364 | 362 | 1.01:1 |
| RefMinimalPerf.default | 244 | 242 | 1.01:1 |
| ToolbarMinimalPerf.default | 964 | 955 | 1.01:1 |
| EmbedMinimalPerf.default | 4195 | 4196 | 1:1 |
| HeaderMinimalPerf.default | 350 | 351 | 1:1 |
| MenuButtonMinimalPerf.default | 1658 | 1660 | 1:1 |
| SplitButtonMinimalPerf.default | 4213 | 4209 | 1:1 |
| CustomToolbarPrototype.default | 4037 | 4056 | 1:1 |
| BoxMinimalPerf.default | 340 | 342 | 0.99:1 |
| ChatMinimalPerf.default | 681 | 685 | 0.99:1 |
| CheckboxMinimalPerf.default | 2678 | 2705 | 0.99:1 |
| DatepickerMinimalPerf.default | 5437 | 5510 | 0.99:1 |
| HeaderSlotsPerf.default | 764 | 769 | 0.99:1 |
| InputMinimalPerf.default | 1296 | 1312 | 0.99:1 |
| ItemLayoutMinimalPerf.default | 1201 | 1211 | 0.99:1 |
| RosterPerf.default | 1191 | 1208 | 0.99:1 |
| ProviderMergeThemesPerf.default | 1718 | 1729 | 0.99:1 |
| ProviderMinimalPerf.default | 1111 | 1122 | 0.99:1 |
| SkeletonMinimalPerf.default | 345 | 350 | 0.99:1 |
| TableMinimalPerf.default | 392 | 396 | 0.99:1 |
| DialogMinimalPerf.default | 782 | 798 | 0.98:1 |
| FlexMinimalPerf.default | 288 | 295 | 0.98:1 |
| TableManyItemsPerf.default | 1839 | 1874 | 0.98:1 |
| AlertMinimalPerf.default | 274 | 282 | 0.97:1 |
| ChatWithPopoverPerf.default | 365 | 377 | 0.97:1 |
| PortalMinimalPerf.default | 171 | 176 | 0.97:1 |
| CarouselMinimalPerf.default | 469 | 489 | 0.96:1 |
| ReactionMinimalPerf.default | 362 | 378 | 0.96:1 |
| ButtonMinimalPerf.default | 169 | 178 | 0.95:1 |
| PopupMinimalPerf.default | 595 | 629 | 0.95:1 |
| AccordionMinimalPerf.default | 161 | 172 | 0.94:1 |
| AttachmentSlotsPerf.default | 1044 | 1109 | 0.94:1 |
theerebuss
approved these changes
Nov 19, 2021
|
Azure Pipelines successfully started running 3 pipeline(s). |
behowell
approved these changes
Nov 25, 2021
behowell
left a comment
Contributor
There was a problem hiding this comment.
Looks good for the initial implementation of RadioItem, thanks @tringakrasniqi!
After this PR, we'll need to update it to have input be its primary slot, similar to the change in Checkbox from PR #20617 I just merged.
mlp73
pushed a commit
to mlp73/fluentui
that referenced
this pull request
Jan 17, 2022
* Picked (wip: radio implementation) from radio-spec Co-authored-by: Peter Varholak <[email protected]> * Added id for radio-item * Added classnames and styles for label * Added styles for label position * Added subtext slot * Fix, removed props from label slot * Fix, removed props from label slot * Reverting fix * Updated dependencies * Updated RadioItem description * Updating to if-statement instead of ternary operator for readability Co-authored-by: Ben Howell <[email protected]> Co-authored-by: Peter Varholak <[email protected]> Co-authored-by: Ben Howell <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request checklist
- [ ] Include a change request file using(private package)$ yarn changeDescription of changes
Adding implementation for
RadioItembased on design spec.