Skip to content
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: adds disableButtonEnhancement on triggers #25211

Conversation

bsunderhus
Copy link
Contributor

@bsunderhus bsunderhus commented Oct 13, 2022

New Behavior

As discussed over internal Tech Sync and also at #24960, triggers should not enhance their child to behave like buttons.

  1. adds disableButtonEnhancement on every trigger usage everywhere.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 13, 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 9e33b17:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 13, 2022

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-alert
Alert
84.688 kB
21.233 kB
react-avatar
Avatar
48.874 kB
13.864 kB
react-avatar
AvatarGroup
14.996 kB
6.013 kB
react-avatar
AvatarGroupItem
68.842 kB
19.205 kB
react-button
Button
36.849 kB
9.907 kB
react-button
CompoundButton
43.874 kB
11.123 kB
react-button
MenuButton
39.543 kB
10.807 kB
react-button
SplitButton
46.989 kB
12.192 kB
react-button
ToggleButton
52.716 kB
11.381 kB
react-card
Card - All
67.664 kB
19.635 kB
react-card
Card
63.346 kB
18.539 kB
react-card
CardFooter
8.607 kB
3.622 kB
react-card
CardHeader
9.65 kB
3.962 kB
react-card
CardPreview
8.708 kB
3.678 kB
react-components
react-components: Button, FluentProvider & webLightTheme
62.94 kB
17.663 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
189.603 kB
52.909 kB
react-components
react-components: FluentProvider & webLightTheme
33.446 kB
11.033 kB
react-dialog
Dialog (including children components)
83.147 kB
24.799 kB
react-menu
Menu (including children components)
116.78 kB
36.112 kB
react-menu
Menu (including selectable components)
119.849 kB
36.635 kB
react-overflow
hooks only
11.004 kB
4.188 kB
react-persona
Persona
53.992 kB
15.25 kB
react-popover
Popover
103.342 kB
31.82 kB
react-portal-compat
PortalCompatProvider
5.857 kB
1.978 kB
🤖 This report was generated against 5064d0a96759e753725fe5168d683471ee2a1a75

@size-auditor
Copy link

size-auditor bot commented Oct 13, 2022

Asset size changes

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

Baseline commit: 5064d0a96759e753725fe5168d683471ee2a1a75 (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 13, 2022

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1260 1285 5000
Button mount 914 924 5000
FluentProvider mount 1475 1476 5000
FluentProviderWithTheme mount 587 576 10
FluentProviderWithTheme virtual-rerender 545 542 10
FluentProviderWithTheme virtual-rerender-with-unmount 581 578 10
MakeStyles mount 1964 1973 50000
SpinButton mount 2353 2349 5000

@bsunderhus bsunderhus force-pushed the react-trigger/chore--adds-disableButtonEnhancement-on-triggers branch from 4021f39 to 6b090e0 Compare October 13, 2022 12:04
@bsunderhus bsunderhus marked this pull request as ready for review October 13, 2022 12:47
@bsunderhus bsunderhus force-pushed the react-trigger/chore--adds-disableButtonEnhancement-on-triggers branch 2 times, most recently from 1095155 to 315ac6e Compare October 20, 2022 16:05
@bsunderhus bsunderhus force-pushed the react-trigger/chore--adds-disableButtonEnhancement-on-triggers branch from 315ac6e to 9e33b17 Compare October 26, 2022 19:35
@miroslavstastny miroslavstastny merged commit f3bef94 into microsoft:master Oct 27, 2022
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Oct 27, 2022
* master: (21 commits)
  fix(react-tabster): make acceptCondition optional as Tabster dont require it (microsoft#25416)
  chore: adds disableButtonEnhancement on triggers (microsoft#25211)
  applying package updates
  feat: Add support for the wbtx whiteboard file extension (microsoft#25346)
  chore(react-select): migrate to new package structure (microsoft#25359)
  chore(react-divider): migrate to new package structure (microsoft#25360)
  fix(docsite): codesandbox exports now working properly for newly migrated v9 packages (microsoft#25388)
  Website: fix focus border on UHF footer links (microsoft#25389)
  applying package updates
  feat: re-export react-table logic hooks (microsoft#25386)
  chore(react-aria): migrate to new package structure (microsoft#25199)
  chore(babel-preset-global-context): migrate to new package structure (microsoft#25340)
  applying package updates
  fix: Improve Stack's style recalculation performance by selectively applying children selectors (microsoft#25381)
  applying package updates
  fix(projects-test): explicitly install next version 12 to fix CI (microsoft#25374)
  allow details element to be toggled inside selection and focus zones (microsoft#25324)
  fix(react-persona): Changing persona's versions to pinned versions (microsoft#25367)
  update fast element and foundation package versions stable (microsoft#25364)
  chore(keyboard-keys, priority-overflow, react-context-selector, react-conformance-griffel): migrate to new package structure (microsoft#25362)
  ...
NotWoods pushed a commit to NotWoods/fluentui that referenced this pull request Nov 18, 2022
* chore: adds disableButtonEnhancement on triggers

* chore: removes unnecessary tests
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.

5 participants