-
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
Split Nav Item Implementation #32873
Merged
mltejera
merged 22 commits into
microsoft:master
from
mltejera:nav/build-out-split-nav-item
Sep 27, 2024
Merged
Split Nav Item Implementation #32873
mltejera
merged 22 commits into
microsoft:master
from
mltejera:nav/build-out-split-nav-item
Sep 27, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
📊 Bundle size report✅ No changes found |
mltejera
commented
Sep 25, 2024
...react-components/react-nav-preview/library/src/components/SplitNavItem/SplitNavItem.types.ts
Outdated
Show resolved
Hide resolved
mltejera
commented
Sep 25, 2024
...react-components/react-nav-preview/library/src/components/SplitNavItem/SplitNavItem.types.ts
Outdated
Show resolved
Hide resolved
mltejera
commented
Sep 25, 2024
...s/react-components/react-nav-preview/library/src/components/SplitNavItem/useSplitNavItem.tsx
Outdated
Show resolved
Hide resolved
mltejera
commented
Sep 25, 2024
...ages/react-components/react-nav-preview/stories/src/NavDrawer/NavDrawerSplitSize.stories.tsx
Outdated
Show resolved
Hide resolved
...s/react-components/react-nav-preview/library/src/components/SplitNavItem/useSplitNavItem.tsx
Show resolved
Hide resolved
Mitch-At-Work
approved these changes
Sep 26, 2024
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.
Looks good, one small nit about renderByDefault
mltejera
force-pushed
the
nav/build-out-split-nav-item
branch
from
September 26, 2024 23:45
0e9d13c
to
eb049a7
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several enhancements and refactorings to the
@fluentui/react-nav-preview
package, focusing primarily on theSplitNavItem
component. The most significant changes include the implementation of new slots forSplitNavItem
, updates to its state and styles, and improvements to the associated tests and documentation.Enhancements to
SplitNavItem
Component:Implementation of New Slots:
navItem
,actionButton
,toggleButton
, andmenuButton
to theSplitNavItem
component. (packages/react-components/react-nav-preview/library/etc/react-nav-preview.api.md
,packages/react-components/react-nav-preview/library/src/components/SplitNavItem/SplitNavItem.types.ts
) [1] [2]SplitNavItemState
to include asize
property, defaulting to 'medium'. (packages/react-components/react-nav-preview/library/etc/react-nav-preview.api.md
,packages/react-components/react-nav-preview/library/src/components/SplitNavItem/SplitNavItem.types.ts
) [1] [2]State and Rendering Updates:
useSplitNavItem_unstable
to utilize the new slots and integrate withNavContext
. (packages/react-components/react-nav-preview/library/src/components/SplitNavItem/useSplitNavItem.tsx
)renderSplitNavItem_unstable
to render the new slots conditionally. (packages/react-components/react-nav-preview/library/src/components/SplitNavItem/renderSplitNavItem.tsx
)Styling and Class Name Enhancements:
useSplitNavItemStyles_unstable
to apply styles to the new slots and updated class names. (packages/react-components/react-nav-preview/library/src/components/SplitNavItem/useSplitNavItemStyles.styles.ts
) [1] [2]packages/react-components/react-nav-preview/library/src/components/sharedNavStyles.styles.ts
)Testing and Documentation:
SplitNavItem
to include new slots and their expected class names. (packages/react-components/react-nav-preview/library/src/components/SplitNavItem/SplitNavItem.test.tsx
)SplitNavItem
. (packages/react-components/react-nav-preview/library/src/components/SplitNavItem/__snapshots__/SplitNavItem.test.tsx.snap
)Miscellaneous:
packages/react-components/react-nav-preview/stories/src/Nav/index.stories.tsx
,packages/react-components/react-nav-preview/stories/src/NavDrawer/Basic.stories.tsx
,packages/react-components/react-nav-preview/stories/src/NavDrawer/Controlled.stories.tsx
) [1] [2] [3]These changes collectively enhance the functionality, maintainability, and test coverage of the
SplitNavItem
component within the@fluentui/react-nav-preview
package.