-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fix: MenuList props should win over context props #26252
Conversation
Fixes the regression introduced in microsoft#25672 so that prop values win over context props with the same name. Fixes #
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: are those new stories related to the fix? Shouldn't those be introduced in another PR?!
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 96c5a1cbb36d728bebfbf05203d372a82b1968d8 (build) |
📊 Bundle size reportUnchanged fixtures
|
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 1282 | 1284 | 5000 | |
Button | mount | 922 | 925 | 5000 | |
FluentProvider | mount | 1495 | 1492 | 5000 | |
FluentProviderWithTheme | mount | 582 | 573 | 10 | |
FluentProviderWithTheme | virtual-rerender | 541 | 544 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 567 | 584 | 10 | |
MakeStyles | mount | 1953 | 1936 | 50000 | |
Persona | mount | 2832 | 2766 | 5000 | |
SpinButton | mount | 2323 | 2320 | 5000 |
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 2d05db1:
|
🕵 fluentuiv9 No visual regressions between this PR and main |
* 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) ...
* fix: MenuList props should win over context props Fixes the regression introduced in microsoft#25672 so that prop values win over context props with the same name. Fixes # * changefile
* fix: MenuList props should win over context props Fixes the regression introduced in microsoft#25672 so that prop values win over context props with the same name. Fixes # * changefile
Fixes the regression introduced in #25672 so that prop values win over context props with the same name.
Also removes deprecation notice on
defaultCheckedValues
andonCheckedValueChange
forMenuList
which are completely reasonable to use in scenarios whereMenuList
is used standalone.Also updates documentation so that
Menu
examples will use the selection props on the rootMenu
components. Adds selection examples forMenuList
to be more clear about the differences between the two.Fixes #26253