-
Notifications
You must be signed in to change notification settings - Fork 125
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
Mc core style import swap #32154
base: main
Are you sure you want to change the base?
Mc core style import swap #32154
Conversation
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
package.json
Outdated
@@ -306,6 +306,7 @@ | |||
"octokit": "^2.1.0", | |||
"octokit-plugin-create-pull-request": "^3.11.0", | |||
"prop-types": "^15.6.1", | |||
"querystring-es3": "^0.2.1", |
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.
needed because we're still relying on uswds v1 grid styles while we get off of Formation the repo.
@@ -636,3 +636,92 @@ div[data-widget-type="events"] { | |||
} | |||
} | |||
/* ^^^ DO NOT REMOVE w/o DS REVIEW: solves !important conflict*/ | |||
|
|||
/* ~~~~~ DO NOT REMOVE w/o DS REVIEW: Temporary fixes to enable core.scss swap ~~~~~~ */ |
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.
For the sake of keeping the mental model relatively simple, I'm just moving our grid classes into shame for the time being. I know I know, we want to get rid of shame.scss eventually. This makes testing easier. These grid classes will 100% be moved to css-library when we have the capacity to update all of grid.
img { | ||
display: inline-block; | ||
vertical-align: middle; |
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.
Foundation sets these on the element selector. Without these styles, the image in .va-banner-container
right above the footer won't sit flush to the rest of the footer. Also without these, images in promo blocks will create some minor content shift in elements above them.
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
// overriding utility class because teamsites has a root font-size of 10px and we don't have a utility class | ||
// in rem that computes exactly to that. | ||
.medium-screen\:vads-u-padding--2 { | ||
padding: 16px !important; |
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.
needed because teamsites still has a root font-size of 10px
@@ -127,7 +127,7 @@ const MobileHeader = ({ isDesktop, megaMenuData }) => { | |||
{/* end Veterans Crisis Line banner */} | |||
|
|||
<nav className="vads-u-display--flex vads-u-flex-direction--column vads-u-margin--0 vads-u-padding--0"> | |||
<div className="header-logo-row vads-u-background-color--primary-darker vads-u-display--flex vads-u-align-items--center vads-u-justify-content--space-between vads-u-padding-y--1p5 vads-u-padding-left--1p5 vads-u-padding-right--1"> | |||
<div className="header-logo-row vads-u-background-color--primary-darker vads-u-display--flex vads-u-align-items--center vads-u-justify-content--space-between vads-u-padding-y--2p5 vads-u-padding-left--2p5 vads-u-padding-right--1p5"> |
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 and the below adjustment are needed because teamsites still has a root font-size of 10px and updating these classes gets us as close as we can get with css-library utilities.
Signed-off-by: Micah Chiang <[email protected]>
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.
It seems like some of the display logic in the mobile injected header was lost when formation core was removed, which led to the expanded gov banner always being displayed. The changes in this file add back in the toggle functionality and update the aria-hidden attribute as needed.
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
Signed-off-by: Micah Chiang <[email protected]>
DO NOT MERGE
This PR attempts to swap the core style import from formation to css-library.
Sibling css-library PR - department-of-veterans-affairs/component-library#1359
Note on Injected Header style changes
The swap from formation to css-library introduces a change to how utility classes are given values. Previously in Formation, utility classes used a base multiple of 8px. In css-library, utility classes rely on
rem
values. This matters because Teamsites still use 10px as a root font size.. What this means is that utility classes needed to be updated for various element class lists. This can be seen in the changes files where for example some elements went from something likevads-u-padding--2
tovads-u-padding--3
. The implication here is that computed values for the injected header will be changing by a minuscule value: in most instances, 0.5px. In some cases, 1px.Are you removing, renaming or moving a folder in this PR?
If the folder you changed contains a
manifest.json
, search for itsentryName
in the content-build registry.json (theentryName
there will match).If an entry for this folder exists in content-build and you are:
Deleting a folder:
vets-website
for all instances of theentryName
in yourmanifest.json
and remove them in a separate PR. Look particularly for references insrc/applications/static-pages/static-pages-entry.js
andsrc/platform/forms/constants.js
. If you do not do this, other applications will break!Renaming or moving a folder: Update the entry in the registry.json, but do not merge it until your vets-website changes here are merged. The content-build PR must be merged immediately after your vets-website change is merged in to avoid CI errors with content-build (and Tugboat).
Did you change site-wide styles, platform utilities or other infrastructure?
Summary
Related issue(s)
Testing done
Screenshots
Profile
Production:
Local:
Production:
Local:
Production:
Local:
Production:
Local:
Production:
Local:
Production:
Local:
Production:
Local:
Production:
Local:
MHV, local on left, staging on right
Combined Debt Portal, local on left staging on right
Claims Status, local on left, staging on right
Injected header, local left, production right
Mock Form Flow, local left, staging right
What areas of the site does it impact?
(Describe what parts of the site are impacted if code touched other areas)
Acceptance criteria
Quality Assurance & Testing
Error Handling
Authentication
Requested Feedback
(OPTIONAL) What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?