-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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(react-accordion): deprecate navigation prop #31587
fix(react-accordion): deprecate navigation prop #31587
Conversation
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. |
📊 Bundle size report✅ No changes found |
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
FluentProviderWithTheme | mount | 80 | 87 | 10 | Possible regression |
FluentProviderWithTheme | virtual-rerender | 39 | 38 | 10 | Possible regression |
All results
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 636 | 640 | 5000 | |
Button | mount | 314 | 310 | 5000 | |
Field | mount | 1098 | 1088 | 5000 | |
FluentProvider | mount | 697 | 717 | 5000 | |
FluentProviderWithTheme | mount | 80 | 87 | 10 | Possible regression |
FluentProviderWithTheme | virtual-rerender | 39 | 38 | 10 | Possible regression |
FluentProviderWithTheme | virtual-rerender-with-unmount | 79 | 74 | 10 | |
MakeStyles | mount | 876 | 860 | 50000 | |
Persona | mount | 1764 | 1700 | 5000 | |
SpinButton | mount | 1369 | 1439 | 5000 | |
SwatchPicker | mount | 1555 | 1552 | 5000 |
change/@fluentui-react-accordion-c3e0ad16-1578-49d3-90c0-422d2c2931e0.json
Outdated
Show resolved
Hide resolved
98db5e2
to
0a28e71
Compare
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. |
0a28e71
to
1e86971
Compare
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. |
c172ada
to
826aefc
Compare
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.
One small comment wording suggestion, & it would probably be good to remove the Navigation example from the storybook (the AccordionNavigation.stories.tsx
file)
I think @bsunderhus should be the one to sign off on the overall deprecation approach
packages/react-components/react-accordion/src/components/Accordion/Accordion.types.ts
Outdated
Show resolved
Hide resolved
please make sure to update this branch with latest master - accordion was migrated to new structure. that's why there is no codeowner assigned. |
packages/react-components/react-accordion/src/components/Accordion/useAccordion.ts
Outdated
Show resolved
Hide resolved
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.
Thanks for the contrib @mainframev, looks good to me. I'd follow up on @smhigley recommendation and remove the navigation story entirely (https://react.fluentui.dev/?path=/docs/components-accordion--default#navigation)
918018f
to
3308d6e
Compare
3308d6e
to
23b9b72
Compare
23b9b72
to
883a05a
Compare
Update packages/react-components/react-accordion/src/components/Accordion/useAccordion.ts Co-authored-by: Bernardo Sunderhus <bernardo.sunderhus@gmail.com> Update packages/react-components/react-accordion/src/components/Accordion/Accordion.types.ts Co-authored-by: Sarah Higley <smhigley@users.noreply.github.com>
883a05a
to
9db4444
Compare
@mainframev it looks ready to merge! Thanks for making this change 🎉 |
Co-authored-by: Sarah Higley <smhigley@users.noreply.github.com>
…-and-drawer-compat * master: (43 commits) chore: remove react-alert from monorepo (microsoft#31642) docs(react-skeleton): extend Skeleton story with SkeletonItem examples (microsoft#31608) feat(react-motion): add support for params (microsoft#31566) applying package updates fix: show default title action in dialog body for modal dialogs (microsoft#31648) chore:(react-nav-preview)Remove redundant NavDrawerHeaderNav component. (microsoft#31646) Update Accordion Size story to allow collapsing (microsoft#31624) fix(react-accordion): deprecate navigation prop (microsoft#31587) fix: Drawer story accessibility fixes and docs update (microsoft#31570) feat:(react-nav-preview) Adds small size variant (microsoft#31589) feat: update divider to use element internals (microsoft#31627) chore(react-components): split react libraries in two (/library and /stories) - teams-prg /3rd batch (microsoft#31601) chore:(docs) Adding Jest testing document (microsoft#31554) chore(react-components): split react libraries in two (/library and /stories) - teams-prg /2nd batch (microsoft#31600) build(deps): bump tar from 6.1.11 to 6.2.1 (microsoft#31633) applying package updates fix: allow updating of CSS properties when they are already defined (microsoft#31629) fix: corrects the border-color for switch when in the checked state on rest (microsoft#31628) chore: update Switch to leverage ElementInternals via Checkbox (microsoft#31613) chore: update temporarily codeowners for split-in-two migrated packages to maintain proper PR review assignemnt for outdated branches (microsoft#31616) ...
* master: (43 commits) chore: remove react-alert from monorepo (microsoft#31642) docs(react-skeleton): extend Skeleton story with SkeletonItem examples (microsoft#31608) feat(react-motion): add support for params (microsoft#31566) applying package updates fix: show default title action in dialog body for modal dialogs (microsoft#31648) chore:(react-nav-preview)Remove redundant NavDrawerHeaderNav component. (microsoft#31646) Update Accordion Size story to allow collapsing (microsoft#31624) fix(react-accordion): deprecate navigation prop (microsoft#31587) fix: Drawer story accessibility fixes and docs update (microsoft#31570) feat:(react-nav-preview) Adds small size variant (microsoft#31589) feat: update divider to use element internals (microsoft#31627) chore(react-components): split react libraries in two (/library and /stories) - teams-prg /3rd batch (microsoft#31601) chore:(docs) Adding Jest testing document (microsoft#31554) chore(react-components): split react libraries in two (/library and /stories) - teams-prg /2nd batch (microsoft#31600) build(deps): bump tar from 6.1.11 to 6.2.1 (microsoft#31633) applying package updates fix: allow updating of CSS properties when they are already defined (microsoft#31629) fix: corrects the border-color for switch when in the checked state on rest (microsoft#31628) chore: update Switch to leverage ElementInternals via Checkbox (microsoft#31613) chore: update temporarily codeowners for split-in-two migrated packages to maintain proper PR review assignemnt for outdated branches (microsoft#31616) ...
Co-authored-by: Sarah Higley <smhigley@users.noreply.github.com>
As reported in #30799 , deprecated navigation prop in order to align react-accordion behaviour in the next version with w3 APG pattern