-
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
chore(MenuDivider): use compose()
#13207
Conversation
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 27704edfdb5f6e183cd745200fc984f2d2bd13ee (build) |
…thub.com/microsoft/fluentui into chore/menudivider-compose
6027b2b
to
aa1182c
Compare
packages/fluentui/react-northstar/src/themes/teams/components/Menu/menuDividerStyles.ts
Show resolved
Hide resolved
|
||
export type MenuDividerStylesProps = Required<Pick<MenuDividerProps, 'vertical' | 'inSubmenu' | 'primary'>> & { | ||
export type MenuDividerStylesProps = Required< | ||
Pick<MenuDividerProps, 'vertical' | 'inSubmenu' | 'pills' | 'primary' | 'pointing'> |
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.
Should we add secondary
here? I know we are not currently using it inside the theme, but if we have the prop I believe it should be added here too..
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.
Yep, added
}), | ||
}), | ||
} as ComponentSlotStylesPrepared<MenuStylesProps, MenuVariables>; | ||
}; |
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.
Please add this to the PR description breaking changes
@@ -44,6 +44,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm | |||
- Update `padding` and `margin` styles for `Card` @pompomon ([#13158](https://github.com/microsoft/fluentui/pull/13158)) | |||
- Add `expandabble` prop and styles for `Card` @pompomon ([#13092](https://github.com/microsoft/fluentui/pull/13092)) | |||
- Use `compose()` in `MenuItem` and added dedicated slot's components `MenuItemIcon`, `MenuItemContent`, `MenuItemIndicator` and `MenuItemWrapper` @mnajdova ([#13117](https://github.com/microsoft/fluentui/pull/13117)) | |||
- Use `compose()` in `MenuDivider` @layershifter ([#13207](https://github.com/microsoft/fluentui/pull/13207)) |
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.
Probably deserves also breaking changes section because of the styles being moved from Menu
's divider slot to MenuDivider
inside the theme. Styles overrides will be broken on client's side
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.
Added
* chore(MenuDivider): use `compose()` * fix exports * fix options usage * move styles to MenuDivider * remove unused styles * add secondary * add changelog entry * add breaking change
Pull request checklist
$ yarn change
BREAKING CHANGES
Move the style for the slot's of the
MenuDivider
frommenuItemStyles
.Before
After
Description of changes
This PR uses
compose()
inMenuDivider
.Focus areas to test
(optional)