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
[WIP] Upgrades to USWDS 1.0.0 #5353
Conversation
ghost
commented
Apr 18, 2017
•
edited by rroueche
edited by rroueche
- Updated package.json, npm-shrinkwrap.json
- Removed Foundation JavaScript.
- Removed Foundation grid, block-grid and visibility partials.
- Removed jQuery references. Unneeded.
- Updating body .row styles to compensate for Foundation removal.
- Imports USWDS partials in correct order.
- Removed b-functions (redundant).
- Updated package.json, npm-shrinkwrap.json - Removed Foundation JavaScript. - Removed Foundation grid, block-grid and visibility partials. - Removed jQuery references. Unneeded. - Updating body .row styles to compensate for Foundation removal. - Imports USWDS partials in correct order. - Removed b-functions (redundant).
Not at all sure what's happening here. Here's what I did to create this PR:
|
But now I get errors from react-scroll. |
^ Good catch on the font paths—I saw this error too when digging in on it. Overriding it that way does seem to fix the font path errors. The font path errors may have masked some underlying errors |
Yeah, there's a lot of legacy weirdness in our code base. I don't think anyone has ever fully understood it at any point. So there's a lot of stuff that mostly works until you try to change it. 😞 |
@tiffanybbrown-va Ok, I got it to work locally by making the font-path change above and downgrading react-scroll: |
- Updated package.json, npm-shrinkwrap.json - Removed Foundation JavaScript. - Removed Foundation grid, block-grid and visibility partials. - Removed jQuery references. Unneeded. - Updating body .row styles to compensate for Foundation removal. - Imports USWDS partials in correct order. - Removed b-functions (redundant).
- Removes Bourbon, Neat from import path.
…-of-veterans-affairs/vets-website into update-uswds
- Updated package.json, npm-shrinkwrap.json - Removed Foundation JavaScript. - Removed Foundation grid, block-grid and visibility partials. - Removed jQuery references. Unneeded. - Updating body .row styles to compensate for Foundation removal. - Imports USWDS partials in correct order. - Removed b-functions (redundant).
- Removes Bourbon, Neat from import path.
Importing |
@tiffanybbrown-va I think you should be able to remove the npm-shrinkwrap.json file in here and do |
…-of-veterans-affairs/vets-website into update-uswds
@tiffanybbrown-va I'm happy to help with whatever we need to get this item merged or in a good place when you leave. |
Not sure why this Jenkins build keeps failing. Running |
Ah. A failing test: |
@tiffanybbrown-va @jbalboni @bshyong after reviewing this PR and chatting with Tiffany on the phone, I'm wondering if it would make things slightly simpler if we reduce the scope of this PR to simply be updating USWDS, and not attempt to remove Foundation at this point. Then we can strip out Foundation app by app, until eventually we are no longer using Foundation classes and can feel confident about removing it entirely. It sounds like there are a few changes that would have to remain in this PR:
Perhaps some additional things would have to be added too:
The reason for recommending this approach is that given the list of things that are still to do in order to complete this task (see Tiffany's notes here), this PR could get very big and will take awhile to merge. Trying to think of a way to break it down into pieces that are more manageable and can be merged more frequently so we don't get into the drift issue we've had so far. Not sure if this is actually possible because I haven't played around with this as much as you all have, so let me know if there's anything I'm missing! General thoughts? |
Wrote up some hand-off notes that summarizes what I think is left to do here. |
…-of-veterans-affairs/vets-website into update-uswds
I started a new branch from master and tried the above approach. I tried upgrading USWDS without taking out Foundation. I started to get a ton of build failures, primarily due to trying to multiply 2 different variables together from 2 different USWDS partials that had incompatible units. If I then removed the Foundation imports, those build failures went away. I have no idea how importing Foundation contribute to this problem, or why this problem was even happening, but without digging into this further I wonder if there will inevitably be conflicts in moving to USWDS without stripping out Foundation, which is why this PR is where it's at now. Since my suggested approach does not seem to be working, we may want to continue with this PR. The only concerns I have with continuing this PR in its current state are:
One other option is to put this PR on hold, submit smaller PRs for removing all Foundation classes across the site and replacing with USWDS classes, and then leaving the upgrade and the final removal of Foundation until all Foundation use in vets-website is totally gone. Looking for some other front-end developers to weigh in here before deciding on the best approach. Kudos to @tiffanybbrown-va for tackling this messy problem. It is a case of working through issue after issue, which is hard work to do. You're leaving this to us in a much better state than it was in before! |
Obsolete in favor of other USWDS work, closing. |