Skip to content

Conversation

@chpalac
Copy link
Contributor

@chpalac chpalac commented Aug 16, 2022

Overview

Add controlled state feature for ToolbarToggleButton

@fabricteam
Copy link
Collaborator

fabricteam commented Aug 16, 2022

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
188.816 kB
51.903 kB
react-components
react-components: FluentProvider & webLightTheme
33.259 kB
10.952 kB
🤖 This report was generated against 625f79c61c8a496a31d19c615a0b8e0d9a72e55b

@size-auditor
Copy link

size-auditor bot commented Aug 16, 2022

Asset size changes

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

Baseline commit: 625f79c61c8a496a31d19c615a0b8e0d9a72e55b (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Aug 16, 2022

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1653 1646 5000
Button mount 1142 1204 5000
FluentProvider mount 1944 1925 5000
FluentProviderWithTheme mount 714 715 10
FluentProviderWithTheme virtual-rerender 653 659 10
FluentProviderWithTheme virtual-rerender-with-unmount 712 708 10
MakeStyles mount 2239 2286 50000
SpinButton mount 3315 3147 5000

@ling1726
Copy link
Contributor

Was this a bad commit ? You created context values that are never used

@chpalac
Copy link
Contributor Author

chpalac commented Aug 21, 2022

Was this a bad commit ? You created context values that are never used

@ling1726 which values? I have created handleToggleButton only

@chpalac chpalac requested review from a team and khmakoto as code owners August 21, 2022 16:16
@chpalac chpalac requested a review from ling1726 August 21, 2022 16:16
@chpalac
Copy link
Contributor Author

chpalac commented Aug 21, 2022

@ling1726 check if last commit was what you meant.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 21, 2022

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 39dd491:

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

Copy link
Contributor

@bsunderhus bsunderhus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, I only got one open question: the modification of ToggleButtonState types, they seem to be inconsistent, I might be completely wrong though, but I'm assuming this inconsistency is hard to track due to casting on useToggleState.

@chpalac chpalac requested a review from bsunderhus August 31, 2022 13:21
@chpalac chpalac requested a review from bsunderhus September 1, 2022 12:56
@chpalac chpalac merged commit bee2c5b into microsoft:master Sep 2, 2022
@chpalac chpalac deleted the feat/toolbar-controlled-state branch September 2, 2022 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants