Skip to content

fix: Minimum visible overflow items should be respected#26194

Merged
ling1726 merged 4 commits intomicrosoft:masterfrom
ling1726:fix/overflow-minimum-visible
Jan 9, 2023
Merged

fix: Minimum visible overflow items should be respected#26194
ling1726 merged 4 commits intomicrosoft:masterfrom
ling1726:fix/overflow-minimum-visible

Conversation

@ling1726
Copy link
Contributor

@ling1726 ling1726 commented Jan 6, 2023

This fixes a regression from #25091, the updated mechanism to handle overflow menu was inadvertedly breaking the minumum visible options because it was still making items invisible without considering whether the minimum number of items was reached.

This fixes a regression from microsoft#25091, the updated mechanism to handle
overflow menu was inadvertedly breaking the minumum visible options
because it was still making items invisible without considering whether
the minimum number of items was reached.
@fabricteam
Copy link
Collaborator

fabricteam commented Jan 6, 2023

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
priority-overflow
createOverflowManager
3.153 kB
1.299 kB
3.182 kB
1.308 kB
29 B
9 B
react-overflow
hooks only
11.004 kB
4.188 kB
11.033 kB
4.198 kB
29 B
10 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
59.888 kB
16.652 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
188.928 kB
53.088 kB
react-components
react-components: FluentProvider & webLightTheme
34.379 kB
11.322 kB
react-portal-compat
PortalCompatProvider
6.069 kB
2.053 kB
🤖 This report was generated against 3f806f907d1e5389101750b21a751bdb8c45a736

@fabricteam
Copy link
Collaborator

fabricteam commented Jan 6, 2023

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1259 1263 5000
Button mount 918 931 5000
FluentProvider mount 1532 1472 5000
FluentProviderWithTheme mount 576 569 10
FluentProviderWithTheme virtual-rerender 547 540 10
FluentProviderWithTheme virtual-rerender-with-unmount 578 570 10
MakeStyles mount 1978 1977 50000
Persona mount 2838 2802 5000
SpinButton mount 2336 2353 5000

@size-auditor
Copy link

size-auditor bot commented Jan 6, 2023

Asset size changes

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

Baseline commit: 3f806f907d1e5389101750b21a751bdb8c45a736 (build)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 6, 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 7ca8b89:

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

@ling1726 ling1726 merged commit 2611ae5 into microsoft:master Jan 9, 2023
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Jan 10, 2023
* master: (29 commits)
  applying package updates
  fix: web component menu layering bug (microsoft#26260)
  Azure Theme: reduced spin button height to match TextField / DropDowns at 24px height (microsoft#26265)
  Update styling for contentBefore and contentAfter input slots (microsoft#26115)
  chore: Update Switch to use griffel reset styles (microsoft#26007)
  Fix: Allow root slot refs to merge with focus refs in Slider (microsoft#26243)
  applying package updates
  revert: MenuItem root slot only supports div (microsoft#26261)
  perf: Don't render Checkbox icon when unchecked (microsoft#26248)
  fix: Select disabled state hover style, Combobox disabled state open on chevron click (microsoft#26068)
  applying package updates
  chore: add more temporary codeowner rools for tooling config files (microsoft#26255)
  fix: stops using ARIAButton types for MenuItem root (microsoft#26257)
  refactor: Cleanup unused code (microsoft#26219)
  fix: MenuList props should win over context props (microsoft#26252)
  feat(react-tree):  Actions positioning and behaviour (microsoft#26113)
  BREAKING(TableCellLayout): `wrapper` slot renamed to `content` (microsoft#26220)
  fix(scripts): make lint errors reporting propagate to STDOUT during pre-commit (lint-staged exec) (microsoft#26212)
  fix: Minimum visible overflow items should be respected (microsoft#26194)
  docs: Fix typos in react-table docs (microsoft#26213)
  ...
q1b pushed a commit to q1b/fluentui that referenced this pull request Jan 24, 2023
)

* fix: Minimum visible overflow items should be respected

This fixes a regression from microsoft#25091, the updated mechanism to handle
overflow menu was inadvertedly breaking the minumum visible options
because it was still making items invisible without considering whether
the minimum number of items was reached.

* changefile

* add test

* changefile
Hotell pushed a commit to Hotell/fluentui that referenced this pull request Feb 9, 2023
)

* fix: Minimum visible overflow items should be respected

This fixes a regression from microsoft#25091, the updated mechanism to handle
overflow menu was inadvertedly breaking the minumum visible options
because it was still making items invisible without considering whether
the minimum number of items was reached.

* changefile

* add test

* changefile
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.

4 participants