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

Demo App - Adds Navigational sidebar to layouts #4730

Merged
merged 16 commits into from
Jan 23, 2025
Merged

Conversation

halocline
Copy link
Collaborator

@halocline halocline commented Jan 22, 2025

Deploy Preview

What does this PR do?

Demo App

  • Adds Navigational sidebar to layouts
  • Adds CollapsibleMenu as hierarchical menu for navigation. Implemented in alignment with Discover prototypes.
  • Sets up NavSidebar to be a reusable component for future use in other layouts

Where should the reviewer start?

What testing has been done on this PR?

In addition to the feature you are implementing, have you checked the following:

General UX Checks

  • Small, medium, and large screen sizes
  • Cross-browsers (FireFox, Chrome, and Safari)
  • Light & dark modes
  • All hyperlinks route properly

Accessibility Checks

  • Keyboard interactions
  • Screen reader experience
  • Run WAVE accessibility plugin (Chrome)

Code Quality Checks

  • Console is free of warnings and errors
  • Passes E2E commit checks
  • Visual snapshots are reasonable

How should this be manually tested?

Any background context you want to provide?

What are the relevant issues?

Screenshots (if appropriate)

Should this PR be mentioned in Design System updates?

Is this change backwards compatible or is it a breaking change?

Copy link

changeset-bot bot commented Jan 22, 2025

⚠️ No Changeset found

Latest commit: 9bc8eb0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link

netlify bot commented Jan 22, 2025

Deploy Preview for unrivaled-bublanina-3a9bae ready!

Name Link
🔨 Latest commit 9bc8eb0
🔍 Latest deploy log https://app.netlify.com/sites/unrivaled-bublanina-3a9bae/deploys/679176d350b972000885f39e
😎 Deploy Preview https://deploy-preview-4730--unrivaled-bublanina-3a9bae.netlify.app
📱 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.

@halocline halocline requested a review from taysea January 22, 2025 21:10
}) => {
const theme = useContext(ThemeContext);
const breakpoint = useContext(ResponsiveContext);
return (
<Page kind="full">
<Page kind="full" {...rest}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Screenshot 2025-01-22 at 1 13 40 PM

Should we add z-index to the global header to avoid the elevation being cut off?

Copy link
Collaborator

Choose a reason for hiding this comment

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

with updated theme styling this elevation goes away anyway, but for toggling between themes

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

label={
<Box direction="row" align="center" justify="between">
<Box direction="row" align="center" gap="xsmall">
<Box width={global.edgeSize.medium}>
Copy link
Collaborator

@taysea taysea Jan 22, 2025

Choose a reason for hiding this comment

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

I'm comfortable with this. Would it make sense to have the width of this be set to medium.hpe.size.icon.medium? Meaning we're reserving space directly for the icon's dimension.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmmm... Yes, that seems appropriate. I was originally thinking we'd replace it with a content size token value, but icon size seems more precise.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

<Page pad={{ bottom: "xlarge" }}>
<PageContent alignSelf="start">
<PageHeader
title="Navigational Sidebar"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
title="Navigational Sidebar"
title="Navigational sidebar"

sentence casing since it's not a product name.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

Copy link
Collaborator

@taysea taysea left a comment

Choose a reason for hiding this comment

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

Overall looks quite nice. A few minor comments.

@halocline halocline requested a review from taysea January 22, 2025 22:54
Copy link
Collaborator

@taysea taysea left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@halocline halocline merged commit 279b329 into master Jan 23, 2025
11 of 12 checks passed
@halocline halocline deleted the layout-sidebar branch January 23, 2025 00:04
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.

2 participants