Skip to content

Conversation

@ling1726
Copy link
Contributor

@ling1726 ling1726 commented Feb 16, 2023

Adds overflowX and overflowY to the positioned element when the autosize dimension is used. It's counterintuitive that components should need to apply overflow styles for this.

Read #26875 (comment) for more context

Fixes #26875

Adds `overflowX` and `overflowY` to the positioned element when the
autosize dimension is used. It's counterintuitive that components
should need to apply overflow styles for this.
@ling1726 ling1726 marked this pull request as ready for review February 16, 2023 11:06
@ling1726 ling1726 requested a review from a team as a code owner February 16, 2023 11:06
@ling1726 ling1726 marked this pull request as draft February 16, 2023 11:15
@size-auditor
Copy link

size-auditor bot commented Feb 16, 2023

Asset size changes

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

Baseline commit: 7c6d08feae9f4feabb2f09212945344a549f9de4 (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Feb 16, 2023

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1251 1287 5000
Button mount 915 927 5000
Field mount 1931 1943 5000
FluentProvider mount 1514 1523 5000
FluentProviderWithTheme mount 573 583 10
FluentProviderWithTheme virtual-rerender 544 541 10
FluentProviderWithTheme virtual-rerender-with-unmount 585 585 10
InfoButton mount 515 514 5000
MakeStyles mount 1951 1958 50000
Persona mount 2854 2806 5000
SpinButton mount 2345 2349 5000

@fabricteam
Copy link
Collaborator

fabricteam commented Feb 16, 2023

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-combobox
Combobox (including child components)
85.255 kB
27.351 kB
85.289 kB
27.363 kB
34 B
12 B
react-combobox
ComboboxField
81.672 kB
27.142 kB
81.706 kB
27.152 kB
34 B
10 B
react-combobox
Dropdown (including child components)
83.942 kB
27.105 kB
83.976 kB
27.116 kB
34 B
11 B
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
201.945 kB
56.256 kB
201.979 kB
56.265 kB
34 B
9 B
react-infobutton
InfoButton
127.151 kB
38.718 kB
127.185 kB
38.733 kB
34 B
15 B
react-menu
Menu (including children components)
126.501 kB
38.723 kB
126.535 kB
38.735 kB
34 B
12 B
react-menu
Menu (including selectable components)
129.57 kB
39.237 kB
129.604 kB
39.248 kB
34 B
11 B
react-popover
Popover
114.224 kB
35.164 kB
114.258 kB
35.174 kB
34 B
10 B
react-positioning
usePositioning
22.951 kB
8.521 kB
22.985 kB
8.528 kB
34 B
7 B
react-tooltip
Tooltip
46.061 kB
16.131 kB
46.095 kB
16.14 kB
34 B
9 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-alert
Alert
87.465 kB
21.569 kB
react-avatar
Avatar
51.192 kB
14.043 kB
react-avatar
AvatarGroup
15.42 kB
6.167 kB
react-avatar
AvatarGroupItem
67.414 kB
18.551 kB
react-components
react-components: Button, FluentProvider & webLightTheme
64.09 kB
17.544 kB
react-components
react-components: FluentProvider & webLightTheme
35.049 kB
11.533 kB
react-persona
Persona
58.207 kB
15.986 kB
react-portal-compat
PortalCompatProvider
6.324 kB
2.129 kB
react-table
DataGrid
143.529 kB
39.134 kB
react-table
Table (Primitives only)
43.776 kB
12.063 kB
react-table
Table as DataGrid
134.29 kB
34.471 kB
react-table
Table (Selection only)
82.208 kB
20.536 kB
react-table
Table (Sort only)
81.637 kB
20.386 kB
🤖 This report was generated against 364c5d8a4a3e4ae4ad7cb91e8a71d7974de6596a

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 16, 2023

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 595034f:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Feb 16, 2023

🕵 fluentuiv9 No visual regressions between this PR and main

@ling1726 ling1726 enabled auto-merge (squash) February 21, 2023 11:55
@ling1726 ling1726 merged commit 9231f2b into microsoft:master Feb 21, 2023
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Feb 24, 2023
* master: (93 commits)
  chore: migrate to jest 27 (microsoft#26835)
  chore: make lint task run without need of build (microsoft#26872)
  chore(react-table): exports UseTableSelectionOptions (microsoft#26892)
  applying package updates
  fix(react-card): allow elements to grow to fill the available space (microsoft#26616)
  fix: Popover without focus trap should not be aria-hidden (microsoft#26932)
  applying package updates
  applying package updates
  fix(react-combobox): Remove _getAriaActiveDescendantValue, compute aria-activedescendantvalue in state, and update currentPendingValue when the options change (microsoft#26574)
  fix: v8 Combobox role and accname for non-hidden icon button (microsoft#26905)
  fix: Removing possible recursive loop in Coachmark (microsoft#26934)
  Combobox: Fix cursor jumping to the end of input (microsoft#26931)
  Fix missing icons on website (microsoft#26797)
  fix: Fix the width of Input's focus border with appearance=underline (microsoft#26881)
  chore: Clean up Input's interactive styles (microsoft#26865)
  Remove codeowners from change files (microsoft#26935)
  chore: add splitbutton error warning to docs, remove button ariaDescription example (microsoft#26904)
  docs: Remove testing code from MenuList example (microsoft#26929)
  chore: refactor SpinButton to use makeResetStyles (microsoft#26867)
  feat: Set overflow on positioned element when `autosize` is applied (microsoft#26868)
  ...
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.

Components that use react-positioning should have vertical overflow set to auto

6 participants