Skip to content
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

feat: remove overflowY if L1 sidenav is collapsed #2523

Merged
merged 6 commits into from
Feb 5, 2025

Conversation

anuraghazra
Copy link
Member

Description

Changes

Additional Information

Component Checklist

  • Update Component Status Page
  • Perform Manual Testing in Other Browsers
  • Add KitchenSink Story
  • Add Interaction Tests (if applicable)
  • Add changeset

Copy link

changeset-bot bot commented Feb 4, 2025

🦋 Changeset detected

Latest commit: 0df6340

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@razorpay/blade Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Feb 4, 2025

✅ PR title follows Conventional Commits specification.

Copy link

codesandbox-ci bot commented Feb 4, 2025

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 0df6340:

Sandbox Source
razorpay/blade: basic Configuration

saurabhdaware
saurabhdaware previously approved these changes Feb 5, 2025
@@ -348,12 +348,29 @@ const NavItem = (
);
};

const Logo = ({ isNavCollapsed }: { isNavCollapsed?: boolean }): React.ReactElement => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

intentional to add this? it's a bit of hack because we don't have TopNav no? so do we need this in docs?

Also check other stories once if this example is used there. In those stories it might end up adding 2 logos one on sidenav and one on topnav

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right will remove this i think.

@@ -355,6 +355,11 @@ const _SideNav = (
onVisibleLevelChange?.({ visibleLevel: 2 });
}, L1_EXIT_HOVER_DELAY);
}
// If L1 is collapsed and not hovered we want to change visible level to 2
// This state/edgecase happens when user clicks on a nested nav and it collapses the L1 causing isL1Hovered to be false
if (isL1Collapsed && !isL1Hovered) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't understand this scenario, Can you share screenrecording?

The level isn't changing in this scneario no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen.Recording.2025-02-05.at.4.41.00.PM.mov

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh got it. Thanks

@rzpcibot
Copy link
Collaborator

rzpcibot commented Feb 5, 2025

Bundle Size Report

Updated Components
Status Component Base Size (kb) Current Size (kb) Diff
SideNav, SideNavLink, SideNavLevel, SideNavSection, SideNavItem, SideNavFooter, SideNavBody, SIDE_NAV_EXPANDED_L1_WIDTH_BASE, SIDE_NAV_EXPANDED_L1_WIDTH_XL 33.699 33.733 +0.034 KB
TextInput 34.262 34.261 -0.001 KB

Generated by 🚫 dangerJS against 0df6340

@anuraghazra anuraghazra merged commit 5531ef3 into master Feb 5, 2025
12 of 14 checks passed
@anuraghazra anuraghazra deleted the anu/sidenav-hide-scroll branch February 5, 2025 12:15
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.

3 participants