-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
chore(react-accordion): update styles to not use CSS shorthands #20800
Conversation
📊 Bundle size report🤖 This report was generated against bd3e92b5193176665879abd667db4350ffcc35ea |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 3ca42a594827a2ce3d5d18fcd4a399c92fda3bd7 (build) |
packages/react-accordion/src/components/AccordionHeader/useAccordionHeaderStyles.ts
Outdated
Show resolved
Hide resolved
}), | ||
rootDisabled: theme => ({ | ||
backgroundColor: 'none', | ||
backgroundImage: 'none', |
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.
was this necessary ?
backgroundImage: 'none', | |
backgroundColor: 'none', |
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.
Not really 😉
⬇️⬇️⬇️
"none" is not a valid value for background-color
:
https://developer.mozilla.org/en-US/docs/Web/CSS/background-color
https://developer.mozilla.org/en-US/docs/Web/CSS/background#formal_syntax
Or it's either backgroundImage: 'none'
or backgroundColor: 'initial'
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.
As VR tests are passing, I am leaving it as it is. We can fix it if it will cause any problems.
packages/react-accordion/src/components/AccordionHeader/useAccordionHeaderStyles.ts
Outdated
Show resolved
Hide resolved
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 1073 | 1065 | 5000 | |
BaseButton | mount | 1178 | 1161 | 5000 | |
Breadcrumb | mount | 2850 | 2843 | 1000 | |
ButtonNext | mount | 682 | 681 | 5000 | |
Checkbox | mount | 1734 | 1739 | 5000 | |
CheckboxBase | mount | 1603 | 1561 | 5000 | |
ChoiceGroup | mount | 5209 | 5082 | 5000 | |
ComboBox | mount | 1156 | 1200 | 1000 | |
CommandBar | mount | 10357 | 10252 | 1000 | |
ContextualMenu | mount | 8477 | 8517 | 1000 | |
DefaultButton | mount | 1318 | 1374 | 5000 | |
DetailsRow | mount | 3987 | 3983 | 5000 | |
DetailsRowFast | mount | 4282 | 4147 | 5000 | |
DetailsRowNoStyles | mount | 4049 | 4129 | 5000 | |
Dialog | mount | 2854 | 2812 | 1000 | |
DocumentCardTitle | mount | 337 | 321 | 1000 | |
Dropdown | mount | 3643 | 3743 | 5000 | |
FluentProviderNext | mount | 4319 | 4284 | 5000 | |
FluentProviderWithTheme | mount | 426 | 388 | 10 | |
FluentProviderWithTheme | virtual-rerender | 252 | 276 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 446 | 477 | 10 | |
FocusTrapZone | mount | 2069 | 2104 | 5000 | |
FocusZone | mount | 2181 | 2071 | 5000 | |
IconButton | mount | 2144 | 2108 | 5000 | |
Label | mount | 524 | 527 | 5000 | |
Layer | mount | 3529 | 3346 | 5000 | |
Link | mount | 701 | 663 | 5000 | |
MakeStyles | mount | 2104 | 2126 | 50000 | |
MenuButton | mount | 1862 | 1813 | 5000 | |
MessageBar | mount | 2290 | 2273 | 5000 | |
Nav | mount | 3786 | 3751 | 1000 | |
OverflowSet | mount | 1386 | 1347 | 5000 | |
Panel | mount | 2776 | 2754 | 1000 | |
Persona | mount | 1077 | 1091 | 1000 | |
Pivot | mount | 1740 | 1749 | 1000 | |
PrimaryButton | mount | 1616 | 1623 | 5000 | |
Rating | mount | 8869 | 8792 | 5000 | |
SearchBox | mount | 1648 | 1662 | 5000 | |
Shimmer | mount | 2990 | 2929 | 5000 | |
Slider | mount | 2287 | 2259 | 5000 | |
SpinButton | mount | 5640 | 5611 | 5000 | |
Spinner | mount | 623 | 625 | 5000 | |
SplitButton | mount | 3638 | 3634 | 5000 | |
Stack | mount | 748 | 745 | 5000 | |
StackWithIntrinsicChildren | mount | 2076 | 2093 | 5000 | |
StackWithTextChildren | mount | 5400 | 5444 | 5000 | |
SwatchColorPicker | mount | 11634 | 11596 | 5000 | |
TagPicker | mount | 3015 | 3028 | 5000 | |
TeachingBubble | mount | 14229 | 14115 | 5000 | |
Text | mount | 644 | 628 | 5000 | |
TextField | mount | 1679 | 1711 | 5000 | |
ThemeProvider | mount | 1458 | 1494 | 5000 | |
ThemeProvider | virtual-rerender | 780 | 796 | 5000 | |
ThemeProvider | virtual-rerender-with-unmount | 2216 | 2186 | 5000 | |
Toggle | mount | 1069 | 1031 | 5000 | |
buttonNative | mount | 303 | 290 | 5000 |
Perf Analysis (@fluentui/react-northstar
)
Perf tests with no regressions
Scenario | Current PR Ticks | Baseline Ticks | Ratio |
---|---|---|---|
ChatDuplicateMessagesPerf.default | 353 | 311 | 1.14:1 |
RefMinimalPerf.default | 249 | 224 | 1.11:1 |
SkeletonMinimalPerf.default | 406 | 373 | 1.09:1 |
AvatarMinimalPerf.default | 230 | 212 | 1.08:1 |
AttachmentMinimalPerf.default | 186 | 175 | 1.06:1 |
GridMinimalPerf.default | 378 | 358 | 1.06:1 |
RadioGroupMinimalPerf.default | 503 | 473 | 1.06:1 |
SliderMinimalPerf.default | 1720 | 1623 | 1.06:1 |
ChatWithPopoverPerf.default | 418 | 397 | 1.05:1 |
TreeWith60ListItems.default | 202 | 193 | 1.05:1 |
AccordionMinimalPerf.default | 182 | 175 | 1.04:1 |
CardMinimalPerf.default | 626 | 600 | 1.04:1 |
ChatMinimalPerf.default | 754 | 722 | 1.04:1 |
DividerMinimalPerf.default | 421 | 404 | 1.04:1 |
LayoutMinimalPerf.default | 394 | 378 | 1.04:1 |
LoaderMinimalPerf.default | 713 | 686 | 1.04:1 |
AttachmentSlotsPerf.default | 1168 | 1130 | 1.03:1 |
FlexMinimalPerf.default | 318 | 310 | 1.03:1 |
ListWith60ListItems.default | 673 | 652 | 1.03:1 |
SegmentMinimalPerf.default | 397 | 386 | 1.03:1 |
VideoMinimalPerf.default | 703 | 685 | 1.03:1 |
AlertMinimalPerf.default | 305 | 298 | 1.02:1 |
BoxMinimalPerf.default | 385 | 376 | 1.02:1 |
MenuButtonMinimalPerf.default | 1795 | 1752 | 1.02:1 |
TableManyItemsPerf.default | 2093 | 2044 | 1.02:1 |
TableMinimalPerf.default | 432 | 423 | 1.02:1 |
TextMinimalPerf.default | 371 | 365 | 1.02:1 |
ButtonOverridesMissPerf.default | 1768 | 1750 | 1.01:1 |
EmbedMinimalPerf.default | 4347 | 4302 | 1.01:1 |
HeaderSlotsPerf.default | 836 | 830 | 1.01:1 |
RosterPerf.default | 1335 | 1321 | 1.01:1 |
ProviderMinimalPerf.default | 1200 | 1188 | 1.01:1 |
CustomToolbarPrototype.default | 4064 | 4031 | 1.01:1 |
TooltipMinimalPerf.default | 1094 | 1088 | 1.01:1 |
TreeMinimalPerf.default | 867 | 855 | 1.01:1 |
AnimationMinimalPerf.default | 458 | 459 | 1:1 |
DialogMinimalPerf.default | 813 | 811 | 1:1 |
DropdownManyItemsPerf.default | 766 | 767 | 1:1 |
FormMinimalPerf.default | 460 | 462 | 1:1 |
HeaderMinimalPerf.default | 400 | 400 | 1:1 |
InputMinimalPerf.default | 1343 | 1341 | 1:1 |
ItemLayoutMinimalPerf.default | 1255 | 1249 | 1:1 |
LabelMinimalPerf.default | 419 | 419 | 1:1 |
ListMinimalPerf.default | 544 | 546 | 1:1 |
ListNestedPerf.default | 582 | 584 | 1:1 |
PopupMinimalPerf.default | 593 | 595 | 1:1 |
SplitButtonMinimalPerf.default | 4501 | 4515 | 1:1 |
ButtonMinimalPerf.default | 190 | 192 | 0.99:1 |
ButtonSlotsPerf.default | 594 | 600 | 0.99:1 |
CarouselMinimalPerf.default | 515 | 522 | 0.99:1 |
DatepickerMinimalPerf.default | 5743 | 5824 | 0.99:1 |
DropdownMinimalPerf.default | 3067 | 3090 | 0.99:1 |
TextAreaMinimalPerf.default | 543 | 548 | 0.99:1 |
ImageMinimalPerf.default | 409 | 416 | 0.98:1 |
PortalMinimalPerf.default | 184 | 187 | 0.98:1 |
StatusMinimalPerf.default | 704 | 716 | 0.98:1 |
ToolbarMinimalPerf.default | 981 | 1002 | 0.98:1 |
CheckboxMinimalPerf.default | 2775 | 2852 | 0.97:1 |
MenuMinimalPerf.default | 891 | 921 | 0.97:1 |
IconMinimalPerf.default | 656 | 674 | 0.97:1 |
ProviderMergeThemesPerf.default | 1639 | 1702 | 0.96:1 |
ReactionMinimalPerf.default | 396 | 412 | 0.96:1 |
ListCommonPerf.default | 677 | 732 | 0.92:1 |
Co-authored-by: ling1726 <[email protected]>
|
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 c18ca92:
|
…osoft#20800) * chore(react-accordion): update styles to not use CSS shorthands * fix stories * Apply suggestions from code review Co-authored-by: ling1726 <[email protected]> * fix spread Co-authored-by: ling1726 <[email protected]>
Pull request checklist
makeStyles()
calls #20573$ yarn change
Description of changes
This PR: