Skip to content

Button components: Making root a non-nullable slot#22147

Merged
khmakoto merged 2 commits into
microsoft:masterfrom
khmakoto:buttonNonNullable
Mar 18, 2022
Merged

Button components: Making root a non-nullable slot#22147
khmakoto merged 2 commits into
microsoft:masterfrom
khmakoto:buttonNonNullable

Conversation

@khmakoto

Copy link
Copy Markdown
Member

Current Behavior

The root slot of Button components is nullable, which should not be the case for any root slots.

New Behavior

This PR fixes the issue by making the root slot of all Button components non-nullable.

Related Issue(s)

Fixes part of #21926

@codesandbox-ci

Copy link
Copy Markdown

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 2ce0af9:

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

@fabricteam

Copy link
Copy Markdown
Collaborator

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-button
Button
28.013 kB
8.059 kB
react-button
CompoundButton
33.508 kB
9.092 kB
react-button
MenuButton
29.796 kB
8.665 kB
react-button
SplitButton
36.268 kB
9.863 kB
react-button
ToggleButton
37.395 kB
8.68 kB
react-card
Card - All
53.619 kB
15.372 kB
react-card
Card
48.904 kB
14.089 kB
react-card
CardFooter
7.686 kB
3.264 kB
react-card
CardHeader
9.251 kB
3.78 kB
react-card
CardPreview
7.658 kB
3.291 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
176.084 kB
49.112 kB
react-components
react-components: FluentProvider & webLightTheme
32.526 kB
10.645 kB
🤖 This report was generated against f4ed6d116e253769f298f787de8a9461f76184b3

@size-auditor

size-auditor Bot commented Mar 18, 2022

Copy link
Copy Markdown

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: f4ed6d116e253769f298f787de8a9461f76184b3 (build)

@fabricteam

Copy link
Copy Markdown
Collaborator

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1062 1099 5000
Button mount 636 634 5000
FluentProvider mount 2120 2095 5000
FluentProviderWithTheme mount 331 316 10
FluentProviderWithTheme virtual-rerender 260 240 10
FluentProviderWithTheme virtual-rerender-with-unmount 339 356 10
MakeStyles mount 1857 1883 50000

@khmakoto khmakoto merged commit 8c862ab into microsoft:master Mar 18, 2022
@khmakoto khmakoto deleted the buttonNonNullable branch March 18, 2022 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants