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

Update to use grid system from USWDS #57

Merged
merged 6 commits into from
Feb 24, 2021
Merged

Update to use grid system from USWDS #57

merged 6 commits into from
Feb 24, 2021

Conversation

alexiscott
Copy link
Contributor

…swds.

@alexiscott alexiscott changed the title Adding layout classes via props, and including defaults taylored to u… Update to use grid system from USWDS Feb 23, 2021
@alexiscott alexiscott linked an issue Feb 23, 2021 that may be closed by this pull request
6 tasks
@alexiscott alexiscott marked this pull request as draft February 23, 2021 15:28
@alexiscott
Copy link
Contributor Author

Adding a couple of Jest tests.

@alexiscott
Copy link
Contributor Author

On Second thoughts, I'm not sure how useful test would be for these classes. They are pretty arbitrary.

There is a another piece that I think might warrant it's own ticket: Adding breakpoints as per the the existing site, and ensuring that the container applies those for max-width.

Let me know your thoughts @dgading ? And if there are any stones left unturned here?

@alexiscott alexiscott marked this pull request as ready for review February 23, 2021 18:49
Copy link
Member

@dgading dgading left a comment

Choose a reason for hiding this comment

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

If you can just remove the container config and then on each page swap out the dc-page and config.container with the grid-container class. That extra step isn't really saving us anything and just makes it more complicated to possibly change a single page as we could break other pages when messing with config. If we had a lot pages it would make sense, but we only have like 5 pages to deal with.

@@ -1,5 +1,5 @@
{
"container": "container",
"container": "grid-container",
Copy link
Member

Choose a reason for hiding this comment

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

I would just remove this line completely. We should move to inline classes to better handle possible one off things.

Copy link
Member

@dgading dgading 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!

@dgading dgading merged commit 4b5d7b0 into 2.0.0 Feb 24, 2021
@janette janette deleted the 2.0.0-layout-classes branch April 4, 2023 02:11
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.

Update to use grid system from USWDS
2 participants