hikaya-io / hakawati

A collection of UI components
GNU General Public License v3.0
2 stars 1 forks source link

Side Nav implementation #254

Closed michaelbukachi closed 2 years ago

michaelbukachi commented 2 years ago

What is the Purpose?

Adds the HSideNav component

What was the approach?

Briefly describe the approach used to address the issue

Are there any concerns to addressed further before or after merging this PR?

Bottom section implementation is pending.

Mentions?

@andrewtpham @ninetteadhikari

Issue(s) affected?

List of issues addressed by this PR.

243

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/hikaya/vue-ui-components/EYEcRinnjWM9N3AoN1HbwXzoPHKN
✅ Preview: https://vue-ui-components-git-sidenavva1-hikaya.vercel.app

ninetteadhikari commented 2 years ago

this is a great first pass @michaelbukachi!!

Two things:

  1. Is it possible to center the button on the line? Currently it is a little off to the right

    image image
  2. Is possible to make the transition a bit slower?

michaelbukachi commented 2 years ago

@ninetteadhikari

  1. Are you referring to the collapsing effect?
ninetteadhikari commented 2 years ago

@ninetteadhikari

  1. Are you referring to the collapsing effect?

yes that's the one. it feels a bit too fast the closing and opening of the navbar.

michaelbukachi commented 2 years ago

@ninetteadhikari

  1. Are you referring to the collapsing effect?

yes that's the one. it feels a bit too fast the closing and opening of the navbar.

Alright.

michaelbukachi commented 2 years ago

@ninetteadhikari Done. I think we might have to enforce a min-width. Changing the size of the viewport affects the side nav size.

ninetteadhikari commented 2 years ago

@ninetteadhikari Done. I think we might have to enforce a min-width. Changing the size of the viewport affects the side nav size.

Great thanks Michael:) if possible lets make sure the min-width also fits a mobile screen

michaelbukachi commented 2 years ago

@ninetteadhikari This is done.

ninetteadhikari commented 2 years ago

thanks Michael:) Closing the panel looks good but opening it can be tweaked a bit

  1. the button can be moved to the right a bit to align with the panel width

    Screen Shot 2022-02-09 at 10 58 16 AM
  2. when opening the panel it seems like the button is moving slower than the panel itself.. If possible can they be aligned?

side nav

hope these are relatively easy to fix 🤞

michaelbukachi commented 2 years ago

@ninetteadhikari

  1. What's the screen size?
  2. I've made adjustments but there's still a slight lag.
ninetteadhikari commented 2 years ago

It seems good for laptop and phone screens. But for Tablet (810 * 1080) the buttons a little off..

image

side nav

Thanks for the transition work it looks great:)

michaelbukachi commented 2 years ago

@ninetteadhikari Fixed.

andrewtpham commented 2 years ago

Hey @michaelbukachi its looking good. I'm playing around with the transition speed and alignment with the line but I can only seem to get the collapse action right where the toggle button and line are in sync. I'd like to do the same for when you toggle to expand the side bar. See the GIF below how its really smooth on the collapse while on the expand action, the line appears too quickly and the toogle button seems to bump the line more to the right at the end of the animation. sidebar

FYI, I'm on 1200px screen size

michaelbukachi commented 2 years ago

Hey @michaelbukachi its looking good. I'm playing around with the transition speed and alignment with the line but I can only seem to get the collapse action right where the toggle button and line are in sync. I'd like to do the same for when you toggle to expand the side bar. See the GIF below how its really smooth on the collapse while on the expand action, the line appears too quickly and the toogle button seems to bump the line more to the right at the end of the animation. sidebar

FYI, I'm on 1200px screen size

@andrewtpham At the moment, I'm unable to figure out why the transition speed is different for the reverse direction. Still looking into it.

michaelbukachi commented 2 years ago

@andrewtpham I've fixed the jumping animation of the border

andrewtpham commented 2 years ago

@michaelbukachi @ninetteadhikari the Sidebar Nav looks good! Can you give it another review and then it should be ready to merge.

Changes I made

I made a change in the transition speed to align them and upgraded the package version, and added HSideNav component to the export default { } in the index.js file as we had done with previous components.

michaelbukachi commented 2 years ago

@andrewtpham Looks good :ok_hand: