Skip to content

Conversation

@khmakoto
Copy link
Member

Current Behavior

The CompoundButton As Toggle Button story does not work when exporting it to codesandbox because it is importing non-exported functions.

New Behavior

Given that we do not want to export those functions and the overall complexity of the example for a niche use case, it has been decided to delete the story itself.

Related Issue(s)

Fixes #23233

@khmakoto khmakoto enabled auto-merge (squash) August 31, 2022 20:13
@codesandbox-ci
Copy link

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 2335e62:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration
lingering-bush-w28dvl Issue #23233

@fabricteam
Copy link
Collaborator

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-alert
Alert
83.788 kB
20.843 kB
react-button
Button
36.396 kB
9.579 kB
react-button
CompoundButton
43.469 kB
10.812 kB
react-button
MenuButton
39.014 kB
10.456 kB
react-button
SplitButton
46.544 kB
11.84 kB
react-button
ToggleButton
51.91 kB
11.003 kB
react-card
Card - All
67.458 kB
19.264 kB
react-card
Card
63.14 kB
18.176 kB
react-card
CardFooter
8.461 kB
3.555 kB
react-card
CardHeader
9.504 kB
3.896 kB
react-card
CardPreview
8.562 kB
3.61 kB
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 d0017be0862c4927c0ea0801b1e0d636adb71f88

@size-auditor
Copy link

size-auditor bot commented Aug 31, 2022

Asset size changes

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

Baseline commit: d0017be0862c4927c0ea0801b1e0d636adb71f88 (build)

@fabricteam
Copy link
Collaborator

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1619 1621 5000
Button mount 1142 1149 5000
FluentProvider mount 1927 1877 5000
FluentProviderWithTheme mount 739 789 10
FluentProviderWithTheme virtual-rerender 702 729 10
FluentProviderWithTheme virtual-rerender-with-unmount 752 770 10
MakeStyles mount 2286 2291 50000
SpinButton mount 3153 3010 5000

@khmakoto khmakoto merged commit e176621 into microsoft:master Aug 31, 2022
@khmakoto khmakoto deleted the removeCompoundButtonAsToggleButtonStory branch August 31, 2022 21:20
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Sep 1, 2022
* master: (99 commits)
  applying package updates
  add coastal to @fluentui/react package and components (microsoft#24599)
  fix(react-18-tests-v9): extend correct tsconfig.json (microsoft#24626)
  feat(react-18-tests-v9): Add cypress setup to enable writing cypress tests (microsoft#24619)
  chore: Removing CompoundButtonAsToggleButton story since it was importing non-exported functions (microsoft#24620)
  Update PeoplePicker focus styles for the close button - Add borderRadius to getFocusStyle (microsoft#24596)
  fix(react-theme): Rename colorNeutralForegroundInvertedStatic token to colorNeutralForegroundStaticInverted (microsoft#24611)
  Website fabric core (microsoft#24613)
  fix(react-theme) update react theme colors mapping (microsoft#24608)
  Remove downloaded artifact file after using it (microsoft#24606)
  Fix artifact downloading race condition (microsoft#24607)
  chore(deps): bump moment-timezone from 0.5.34 to 0.5.37 (microsoft#24604)
  Remove check for commit existence and make it optional (microsoft#24587)
  Update "screener-build.yml" to include lage's output (microsoft#24586)
  fix(react-theme): Change colorBrandForeground2 mapping in teamsDark theme (microsoft#24579)
  Add scoping for workflow (microsoft#24466)
  fix(react-theme): Swap Background1 and Foreground1 in HC color palette (microsoft#24498)
  applying package updates
  Add support for javascript date localization (microsoft#24577)
  fix: Combobox and Dropdown hover/active borders and padding style fixes (microsoft#24362)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: CompoundButton has broken story "As Toggle Button" after export

3 participants