-
Notifications
You must be signed in to change notification settings - Fork 1.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
feat: add enterDelayMs-type prop to delay displaying SideNav component #13850
feat: add enterDelayMs-type prop to delay displaying SideNav component #13850
Conversation
✅ Deploy Preview for carbon-components-react ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
I see one of the test is failing and I am investigating the reason for it . I will push the changes, once I have a fix for it . Thanks |
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.
Visual regressions due to class name removal, playground story respects the enter delay but it just flashes open and closes immediately.
@tw15egan : Thanks for comments. I made the required changes and push the code to the PR. |
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.
I left some comments, testing locally I could achieve the same functionality without the additional classes. Let me know if I missed anything though!
packages/styles/scss/components/ui-shell/side-nav/_side-nav.scss
Outdated
Show resolved
Hide resolved
Co-authored-by: TJ Egan <[email protected]>
Co-authored-by: TJ Egan <[email protected]>
Thanks @tw15egan . Yes, I removed that additional blocks in the scss file, and it worked fine without the need of additional class. |
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.
Small documentation issue, but the functionality looks great. Thanks for working on this!
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.
This is looking great! I agree with @tw15egan , @Shankar-CodeJunkie could we put the controls in the sidenav rail story https://deploy-preview-13850--carbon-components-react.netlify.app/?path=/story/components-ui-shell--side-nav-rail instead of adding a playground for it? I believe adding a playground to the UIShell would involve a bigger effort than just these two controls since it's an umbrella for a lot of subcomps and we might not want to tackle that in the scope of this pr
@tw15egan @francinelucca : As recommended, I've removed the playground story and modified the existing |
This is almost there, @Shankar-CodeJunkie we meant to add a customizable control for the |
@francinelucca !. Oh yes .. I see it now, what needs to be changed ! .. Thanks for your help ! When I make the change, I see an extra |
@Shankar-CodeJunkie It seems like it's having an issue pulling the description from the |
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.
Not sure why it's adding the '-' in the bottom but I wouldn't worry about it, other than that LGTM
Thanks @francinelucca and @tw15egan for your help !. |
Closes #13791
Add enterDelayMs-type prop to Specify the duration in milliseconds to delay before displaying the sidenavigation
Changelog
Changed
enterDelayMs
to specify the duration in milliseconds to delay before displaying the sidenavigationTesting / Reviewing
enterDelayMs
and I see the delay in opening up the sidenavigation.