feat(slider, tooltip): add static classes - #20455
Merged
Merged
Conversation
layershifter
requested review from
a team,
behowell,
ecraig12345 and
khmakoto
as code owners
November 2, 2021 15:31
layershifter
commented
Nov 2, 2021
| import * as React_2 from 'react'; | ||
|
|
||
| // @public (undocumented) | ||
| export const lowerThumbClassName: string; |
Member
Author
There was a problem hiding this comment.
I removed this export until we will agree on classes for slots
Collaborator
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 9186578324773f95f4d61be3d70e67752159d843 (build) |
|
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 e406cce:
|
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 1085 | 1036 | 5000 | |
| BaseButton | mount | 1076 | 1045 | 5000 | |
| Breadcrumb | mount | 2922 | 2882 | 1000 | |
| ButtonNext | mount | 593 | 584 | 5000 | |
| Checkbox | mount | 1843 | 1805 | 5000 | |
| CheckboxBase | mount | 1488 | 1498 | 5000 | |
| ChoiceGroup | mount | 5557 | 5465 | 5000 | |
| ComboBox | mount | 1092 | 1117 | 1000 | |
| CommandBar | mount | 11411 | 11436 | 1000 | |
| ContextualMenu | mount | 7176 | 7297 | 1000 | |
| DefaultButton | mount | 1307 | 1328 | 5000 | |
| DetailsRow | mount | 4293 | 4325 | 5000 | |
| DetailsRowFast | mount | 4304 | 4290 | 5000 | |
| DetailsRowNoStyles | mount | 4163 | 4113 | 5000 | |
| Dialog | mount | 2897 | 2945 | 1000 | |
| DocumentCardTitle | mount | 209 | 184 | 1000 | |
| Dropdown | mount | 3714 | 3731 | 5000 | |
| FluentProviderNext | mount | 3484 | 3633 | 5000 | |
| FluentProviderWithTheme | mount | 224 | 214 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 101 | 108 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 257 | 263 | 10 | |
| FocusTrapZone | mount | 2032 | 1985 | 5000 | |
| FocusZone | mount | 1994 | 1963 | 5000 | |
| IconButton | mount | 2043 | 2064 | 5000 | |
| Label | mount | 422 | 391 | 5000 | |
| Layer | mount | 3457 | 3556 | 5000 | |
| Link | mount | 537 | 556 | 5000 | |
| MakeStyles | mount | 1998 | 2067 | 50000 | |
| MenuButton | mount | 1728 | 1737 | 5000 | |
| MessageBar | mount | 2224 | 2239 | 5000 | |
| Nav | mount | 3799 | 3822 | 1000 | |
| OverflowSet | mount | 1253 | 1249 | 5000 | |
| Panel | mount | 2753 | 2805 | 1000 | |
| Persona | mount | 970 | 968 | 1000 | |
| Pivot | mount | 1647 | 1649 | 1000 | |
| PrimaryButton | mount | 1509 | 1462 | 5000 | |
| Rating | mount | 9152 | 9182 | 5000 | |
| SearchBox | mount | 1575 | 1541 | 5000 | |
| Shimmer | mount | 2999 | 2992 | 5000 | |
| Slider | mount | 2308 | 2210 | 5000 | |
| SpinButton | mount | 5636 | 5731 | 5000 | |
| Spinner | mount | 489 | 486 | 5000 | |
| SplitButton | mount | 3624 | 3610 | 5000 | |
| Stack | mount | 608 | 630 | 5000 | |
| StackWithIntrinsicChildren | mount | 1975 | 2053 | 5000 | |
| StackWithTextChildren | mount | 5414 | 5457 | 5000 | |
| SwatchColorPicker | mount | 11933 | 12034 | 5000 | |
| TagPicker | mount | 3020 | 3058 | 5000 | |
| TeachingBubble | mount | 14455 | 14597 | 5000 | |
| Text | mount | 504 | 486 | 5000 | |
| TextField | mount | 1668 | 1611 | 5000 | |
| ThemeProvider | mount | 1343 | 1383 | 5000 | |
| ThemeProvider | virtual-rerender | 675 | 681 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 2157 | 2166 | 5000 | |
| Toggle | mount | 957 | 930 | 5000 | |
| buttonNative | mount | 165 | 151 | 5000 |
Perf Analysis (@fluentui/react-northstar)
Perf tests with no regressions
| Scenario | Current PR Ticks | Baseline Ticks | Ratio |
|---|---|---|---|
| AccordionMinimalPerf.default | 219 | 176 | 1.24:1 |
| DialogMinimalPerf.default | 931 | 840 | 1.11:1 |
| GridMinimalPerf.default | 425 | 386 | 1.1:1 |
| TextAreaMinimalPerf.default | 630 | 574 | 1.1:1 |
| AvatarMinimalPerf.default | 248 | 228 | 1.09:1 |
| LoaderMinimalPerf.default | 844 | 776 | 1.09:1 |
| SegmentMinimalPerf.default | 441 | 404 | 1.09:1 |
| ListMinimalPerf.default | 609 | 564 | 1.08:1 |
| BoxMinimalPerf.default | 425 | 397 | 1.07:1 |
| SkeletonMinimalPerf.default | 446 | 420 | 1.06:1 |
| AlertMinimalPerf.default | 345 | 330 | 1.05:1 |
| DividerMinimalPerf.default | 424 | 404 | 1.05:1 |
| HeaderSlotsPerf.default | 920 | 877 | 1.05:1 |
| RosterPerf.default | 1439 | 1374 | 1.05:1 |
| PortalMinimalPerf.default | 198 | 188 | 1.05:1 |
| AnimationMinimalPerf.default | 507 | 489 | 1.04:1 |
| AttachmentMinimalPerf.default | 200 | 192 | 1.04:1 |
| CarouselMinimalPerf.default | 547 | 526 | 1.04:1 |
| LabelMinimalPerf.default | 456 | 437 | 1.04:1 |
| LayoutMinimalPerf.default | 430 | 415 | 1.04:1 |
| StatusMinimalPerf.default | 796 | 767 | 1.04:1 |
| TextMinimalPerf.default | 417 | 400 | 1.04:1 |
| AttachmentSlotsPerf.default | 1260 | 1219 | 1.03:1 |
| RadioGroupMinimalPerf.default | 538 | 521 | 1.03:1 |
| ReactionMinimalPerf.default | 469 | 454 | 1.03:1 |
| VideoMinimalPerf.default | 773 | 753 | 1.03:1 |
| ButtonMinimalPerf.default | 207 | 203 | 1.02:1 |
| DatepickerMinimalPerf.default | 6305 | 6210 | 1.02:1 |
| ImageMinimalPerf.default | 435 | 428 | 1.02:1 |
| MenuMinimalPerf.default | 986 | 969 | 1.02:1 |
| MenuButtonMinimalPerf.default | 1936 | 1906 | 1.02:1 |
| SplitButtonMinimalPerf.default | 5010 | 4933 | 1.02:1 |
| IconMinimalPerf.default | 722 | 707 | 1.02:1 |
| ToolbarMinimalPerf.default | 1107 | 1085 | 1.02:1 |
| CheckboxMinimalPerf.default | 3043 | 3009 | 1.01:1 |
| DropdownMinimalPerf.default | 3568 | 3518 | 1.01:1 |
| EmbedMinimalPerf.default | 4936 | 4908 | 1.01:1 |
| PopupMinimalPerf.default | 667 | 658 | 1.01:1 |
| TableManyItemsPerf.default | 2257 | 2244 | 1.01:1 |
| ButtonSlotsPerf.default | 636 | 635 | 1:1 |
| CardMinimalPerf.default | 656 | 659 | 1:1 |
| ChatDuplicateMessagesPerf.default | 352 | 353 | 1:1 |
| ChatMinimalPerf.default | 767 | 769 | 1:1 |
| ChatWithPopoverPerf.default | 438 | 439 | 1:1 |
| TooltipMinimalPerf.default | 1195 | 1194 | 1:1 |
| TreeMinimalPerf.default | 926 | 929 | 1:1 |
| DropdownManyItemsPerf.default | 797 | 808 | 0.99:1 |
| InputMinimalPerf.default | 1490 | 1504 | 0.99:1 |
| ListCommonPerf.default | 735 | 745 | 0.99:1 |
| RefMinimalPerf.default | 268 | 272 | 0.99:1 |
| SliderMinimalPerf.default | 1972 | 1991 | 0.99:1 |
| CustomToolbarPrototype.default | 4624 | 4652 | 0.99:1 |
| FlexMinimalPerf.default | 325 | 330 | 0.98:1 |
| FormMinimalPerf.default | 486 | 495 | 0.98:1 |
| ItemLayoutMinimalPerf.default | 1425 | 1465 | 0.97:1 |
| ListNestedPerf.default | 652 | 670 | 0.97:1 |
| ListWith60ListItems.default | 734 | 757 | 0.97:1 |
| ProviderMinimalPerf.default | 1303 | 1345 | 0.97:1 |
| TableMinimalPerf.default | 465 | 478 | 0.97:1 |
| ButtonOverridesMissPerf.default | 1992 | 2071 | 0.96:1 |
| ProviderMergeThemesPerf.default | 1888 | 1958 | 0.96:1 |
| TreeWith60ListItems.default | 214 | 226 | 0.95:1 |
| HeaderMinimalPerf.default | 419 | 445 | 0.94:1 |
layershifter
marked this pull request as draft
November 2, 2021 16:11
khmakoto
reviewed
Nov 2, 2021
Co-authored-by: Makoto Morimoto <humbertomakotomorimoto@gmail.com>
Co-authored-by: Makoto Morimoto <humbertomakotomorimoto@gmail.com>
…eat/classnames-p7
This was referenced Nov 3, 2021
layershifter
commented
Nov 3, 2021
| export const markClassName = 'ms-Slider-mark'; | ||
| export const markLabelClassName = 'ms-Slider-label'; | ||
| // These should be imported directly from useSliderStyles(), but currently it causes build issues | ||
| // https://github.com/microsoft/fluentui/issues/20480 |
Member
Author
There was a problem hiding this comment.
I reported the problem to Linaria repo, once it will be fixed - we will remove duplication.
layershifter
marked this pull request as ready for review
November 3, 2021 17:57
khmakoto
approved these changes
Nov 3, 2021
mlp73
pushed a commit
to mlp73/fluentui
that referenced
this pull request
Jan 17, 2022
* feat(slider, tooltip): add static classes * Update packages/react-slider/src/components/RangedSlider/Spec.md Co-authored-by: Makoto Morimoto <humbertomakotomorimoto@gmail.com> * Update packages/react-slider/src/components/Slider/Spec.md Co-authored-by: Makoto Morimoto <humbertomakotomorimoto@gmail.com> * use star export * fix VR regressions * fix imports Co-authored-by: Makoto Morimoto <humbertomakotomorimoto@gmail.com>
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
$ yarn changeDescription of changes
✅ Extracted from #20383, these changes passed conformance test on that PR
This PR adds static classes to components
@fluentui/react-slider&@fluentui/react-tooltip.fui-ComponentNamecomponentNameClassName