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
8395 [Manage Public Key] Add new route, and basic page #8665
Conversation
4c7c911
to
0006c1a
Compare
|
||
export function ManagePublicKey() { | ||
return ( | ||
<div className="grid-container margin-bottom-5 tablet:margin-top-6"> |
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.
Let's use paddings instead of margins when we're restricting widths/heights of contents; margins are meant for spacings between elements rather than dictating the descendant content flow, and vertical margins are also susceptible to collapse, which can happen unintentionally especially between top-level elements of components.
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.
Just following the way we have it throughout the site but can change it. Will also change from <div
> to <section>
per your comment below.
frontend-react/src/components/ManagePublicKey/ManagePublicKey.tsx
Outdated
Show resolved
Hide resolved
|
||
export function ManagePublicKey() { | ||
return ( | ||
<div className="grid-container margin-bottom-5 tablet:margin-top-6"> |
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.
Another point is that react-uswds provides some atomic elements for things like the grid container, which I think we should start using despite the fact that they're very thin wrappers around modifier classes. Even if we move off of react-uswds, it'll be easier to make the migration to another library or our own component system if we have one consistent way of treating them now instead of modifier classes.
@etanb @jpandersen87 Thoughts?
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.
As long as USWDS' grid is just shortcuts to flexbox (and thus react-uswds' grid) it sounds fine to me.
* Added ability to remove filtered conditions from a bundle --------- Co-authored-by: Jessica Willis <jessicawillis@navapbc.com>
* Update to Node 18 Fixes #7078
- Changed <div> to <GridContainer>. - Removed extra <div>
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.
Just a small lint error, but this looks good to me!
- Fix lint error
SonarCloud Quality Gate failed. |
This PR ...
Adds a new route and page for the Public Key Tool
Test Steps:
Changes
Checklist
Testing
./prime test
or./gradlew testSmoke
against local Docker ReportStream container?npm run lint:write
?Linked Issues