-
Notifications
You must be signed in to change notification settings - Fork 33
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
Match chrome (header and sidebar nav) to new docs #790
base: main
Are you sure you want to change the base?
Conversation
|
🟢 No design token changes found |
|
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.
Hey there! This looks awesome! Leaving some feedback from the deployment link.
I believe this should be Primer / Brand UI
, since that's the page the user is currently on, and Brand UI should not be listed to the right with the other links.
Is it possible to update the side nav in this PR to match new docs as well? Main things missing is Mona Sans. If the section headers aren't clickable, I think they're fine left in gray/muted color.
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 looks great! I'm sorry, I mentioned in Slack but I should have put it here -
|
apps/docs/src/@primer/gatsby-theme-doctocat/components/header.module.css
Outdated
Show resolved
Hide resolved
export default function Header() { | ||
return ( | ||
<header className={styles.PageHeader}> | ||
<a href="https://primer.style/" className={styles.SiteTitle}> |
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.
Can we make this link to Primer Brand docs? Our users rarely need to go to the homepage or product docs so it feels intuitive to send them to the root. Ideally it would work like our marketing pages, where clicking on the title text takes you back to Primer Brand UI homepage and clicking the Logo icon will take you back to primer.style. What do you think?
Screen.Recording.2024-12-03.at.09.54.17.mov
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 think we want to keep this as a link to root. One of the main purposes of the docs redesign is to make all of the Primer docs feel like they live in one big site.
apps/docs/src/@primer/gatsby-theme-doctocat/components/header.module.css
Outdated
Show resolved
Hide resolved
apps/docs/src/@primer/gatsby-theme-doctocat/components/header.module.css
Show resolved
Hide resolved
<Dialog | ||
onClose={closeDialog} | ||
width="small" | ||
// TODO: get `@primer/react` updated to a version that supports the `position` prop on experimental `Dialog` component |
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.
Is this something you'll be looking at straight after @mperrotti or shall we take this on in Brand? This workaround feels quite broken with the double scroll bars and centering.
Screen.Recording.2024-12-03.at.10.09.22.mov
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.
Double scrollbars should definitely be fixed. I can't think of a way around centering except:
- Upgrade to a newer version of
@primer/react
- Attempt to use the
sx
prop to fake a side sheet
I'll try using the sx
prop to manually style this like a side sheet.
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 ended up achieving this with the sx
prop
Co-authored-by: Rez <[email protected]>
…module.css Co-authored-by: Rez <[email protected]>
Co-authored-by: Rez <[email protected]>
Co-authored-by: Rez <[email protected]>
Co-authored-by: Rez <[email protected]>
…module.css Co-authored-by: Rez <[email protected]>
…module.css Co-authored-by: Rez <[email protected]>
Co-authored-by: Rez <[email protected]>
Closes https://github.com/github/primer/issues/4166
We should wait until the new docs site is launched before merging this. Update 02 Dec 2024: soft launch is happening sometime this week - likely Tuesday 03 Dec 2024.
Summary
Updates the design of the docs site navigation to match the new Primer docs site (https://github.com/github/primer-docs) to give a more "seamless" feel when navigating between the different sub-sites.
We chose not to make these changes in doctocat to avoid accidentally breaking things downstream.
List of notable changes:
What should reviewers focus on?
Confirm that this matches the design of the new Primer docs site.
Steps to test:
Supporting resources (related issues, external links, etc):
Contributor checklist:
Reviewer checklist:
Screenshots:
Child pages
Landing page