Skip to content

Conversation

@nprimak
Copy link
Contributor

@nprimak nprimak commented Oct 17, 2023

Layout updates for LG-10765

These updates are based on the Figma design found here

The code sidebar that will show the snippets will be hidden until LG-11341 is complete and feature flag is turned on. This ticket just adds space for that column. There is commented out code that will help whoever works on LG-11341 to add snippets.

I tried my best to adhere to the USWDS guidelines while also adding custom css where I saw no other workaround.

@nprimak nprimak requested a review from a team as a code owner October 17, 2023 19:20
@nprimak nprimak requested review from Jeremy1026 and aduth and removed request for a team October 17, 2023 19:20
@nprimak
Copy link
Contributor Author

nprimak commented Oct 17, 2023

The snippets.md file was just an example of how we might be able to insert the snippets into the sidebar column - but the majority of that work would happen in LG-11341 not this ticket

@Jeremy1026
Copy link
Contributor

This broke the sticky left-nav :(

@nprimak
Copy link
Contributor Author

nprimak commented Oct 17, 2023

This broke the sticky left-nav :(

Sigh. I was testing that locally and it seemed to be working but I was worried having so many classes there might mess it up

@aduth
Copy link
Contributor

aduth commented Oct 18, 2023

At large viewports, the main logo / navigation header isn't centered or width-constrained. Should it be?

image

Copy link

@anniehirshman-gsa anniehirshman-gsa left a comment

Choose a reason for hiding this comment

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

This looks great, thanks! Just a couple of suggestions:

  • Set max width of header and return to top button at 100rem/1600px (or a similar breakpoint)
  • Align “Edit this page” button with left edge of main content area
  • Align “An official website of the United States government” text/button with left edge of logo/header

@nprimak
Copy link
Contributor Author

nprimak commented Oct 20, 2023

New widescreen screenshots of header and footer
Screenshot 2023-10-20 at 4 45 32 PM
Screenshot 2023-10-20 at 4 45 23 PM

Copy link

@anniehirshman-gsa anniehirshman-gsa left a comment

Choose a reason for hiding this comment

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

LGTM!

Co-authored-by: Jeremy Curcio <jeremy.curcio@gsa.gov>
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Couple non-blocking, nit-picky items, but LGTM otherwise 👍

Comment on lines 127 to 128
<header aria-label="hero" class="usa-dark-background usa-section--dark">
<section class="usa-section">
Copy link
Contributor

Choose a reason for hiding this comment

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

With BEM class conventions, I'd expect to see the modifier usa-section--dark assigned to the same element as the usa-section class. I'd also wonder if we'd need both, vs. just assigning usa-section to the <header> element.

@nprimak nprimak merged commit e9c00c2 into main Oct 24, 2023
@nprimak nprimak deleted the np/LG-10765/dev-doc-layout branch October 24, 2023 14:07
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.

5 participants