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

Reskin | sidebar #1605

Merged
merged 41 commits into from
Apr 30, 2024
Merged

Reskin | sidebar #1605

merged 41 commits into from
Apr 30, 2024

Conversation

adamgall
Copy link
Member

@adamgall adamgall commented Apr 24, 2024

Updates the left navigation sidebar

  • Hug bottom group of icons to bottom of viewport, with some buffer space.
  • Center the top group of icons in the empty space between Header and bottom icon group.
  • Make sure to give buffer space between two icon groups when viewport is short, and button groups bump up next to each other.
  • Give padding between left of viewport and beginning of button groups
  • Use new Phosphor icons
  • Updated background color for button groups
  • Updated border color for button groups
  • Updated border radius for button groups
  • Nuances in the bottom button group, for the language selector border
  • New expanded view of button groups on hover
  • Persistent expansion when viewport width > 1600px
  • Mobile menu

Some Screenshots:

Screenshot 2024-04-29 at 5 09 36 PM

Screenshot 2024-04-29 at 5 09 49 PM

Screenshot 2024-04-29 at 5 11 29 PM

Screenshot 2024-04-29 at 5 11 50 PM

Screenshot 2024-04-29 at 5 10 00 PM

Screenshot 2024-04-29 at 5 10 24 PM

Screenshot 2024-04-29 at 5 10 33 PM

@adamgall adamgall changed the base branch from develop to reskin/refactor-root-reskin April 24, 2024 20:57
Copy link

netlify bot commented Apr 24, 2024

Deploy Preview for fractal-dev ready!

Name Link
🔨 Latest commit 48561aa
🔍 Latest deploy log https://app.netlify.com/sites/fractal-dev/deploys/66312787c2d4ad0008e905db
😎 Deploy Preview https://deploy-preview-1605.app.dev.fractalframework.xyz
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@mudrila mudrila left a comment

Choose a reason for hiding this comment

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

Have bunch of comments, most of them are minor/optional. Leaving them just assuming there will be more changes and thus - another round of review. So feel free to make changes or ignore them - we can tackle these later for sure

src/components/ui/page/Navigation/NavigationLink.tsx Outdated Show resolved Hide resolved
src/components/ui/page/Navigation/NavigationLink.tsx Outdated Show resolved Hide resolved
src/components/ui/page/Navigation/NavigationLink.tsx Outdated Show resolved Hide resolved
src/components/ui/page/Navigation/NavigationLinks.tsx Outdated Show resolved Hide resolved
src/components/ui/page/Navigation/NavigationLinks.tsx Outdated Show resolved Hide resolved
@adamgall adamgall marked this pull request as ready for review April 29, 2024 21:06
@adamgall
Copy link
Member Author

@DarksightKellar @mudrila I've addressed your comments, and marked this PR ready for review

Copy link
Contributor

@mudrila mudrila left a comment

Choose a reason for hiding this comment

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

Lovely! Have few questions but feel free to ignore them if there's some context behind inability to style things through usual flow

src/components/ui/page/Header/index.tsx Outdated Show resolved Hide resolved
src/components/ui/page/Navigation/NavigationLink.tsx Outdated Show resolved Hide resolved
onClick={closeDrawer}
style={{ display: 'block', paddingTop: '0.75rem', paddingBottom: '0.75rem' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we omit using inline styles? Or it was too complex to get it styled right without inline styling?

Copy link
Member Author

Choose a reason for hiding this comment

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

I might need your help with this one... The Link component here is from react-router-dom, not chakra-ui, and so doesn't have any paddingTop etc properties on it. I don't really know how else to add styles to this (I want to literally make the rendered anchor tag bigger) without either doing these inline styles, or defining a CSS class somewhere.

{...rest}
target="_blank"
rel="noreferrer noopener"
style={{ display: 'block', paddingTop: '0.75rem', paddingBottom: '0.75rem' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

tag should have display block by default, unless there's some weird global style override. Also, we can avoid using inline styling if we'll use plain Chakra UI link and will pass these styles as props

Copy link
Member Author

Choose a reason for hiding this comment

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

Anchor tags seem to not be block by default.


style={{ display: 'block', paddingTop: '0.75rem', paddingBottom: '0.75rem' }}
Screenshot 2024-04-30 at 9 19 45 AM
style={{ paddingTop: '0.75rem', paddingBottom: '0.75rem' }}
Screenshot 2024-04-30 at 9 20 19 AM

And can you help me with whatever it is you're suggesting to not use inline styles? I guess I'm not sure what approach you're suggesting.

Copy link

@nicolaus-sherrill nicolaus-sherrill left a 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 was having some weird issues with the component when I first pulled up the deploy preview (cursor glitching, needing to click to expand) but was unable to recreate once I reloaded and left the page open for a bit.

I don't see the hover, pressed, or active states active here yet, captured in this screen shot and recording.

Screenshot 2024-04-30 at 9 13 23 AM
Screen.Recording.2024-04-30.at.9.06.56.AM.mov

@adamgall
Copy link
Member Author

This is looking great!

I was having some weird issues with the component when I first pulled up the deploy preview (cursor glitching, needing to click to expand) but was unable to recreate once I reloaded and left the page open for a bit.

I don't see the hover, pressed, or active states active here yet, captured in this screen shot and recording.

Screenshot 2024-04-30 at 9 13 23 AM

Screen.Recording.2024-04-30.at.9.06.56.AM.mov

@nicolaus-sherrill sorry, where is that figma showing the hover and active states?

@adamgall adamgall self-assigned this Apr 30, 2024
@adamgall adamgall merged commit 1eb53e7 into reskin/refactor-root-reskin Apr 30, 2024
7 checks passed
@adamgall adamgall deleted the reskin/sidebar branch April 30, 2024 17:19
@adamgall adamgall changed the title Reskin/sidebar Reskin | sidebar Apr 30, 2024
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.

4 participants