department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
282 stars 203 forks source link

Discovery: CSS Cleanup tasks #35475

Closed k80bowman closed 2 years ago

k80bowman commented 2 years ago

Description

Develop a list of things we could do to clean up our CSS in https://github.com/department-of-veterans-affairs/veteran-facing-services-tools/tree/master/packages/formation.

Advantages to doing this work:

Details

We are aware that there is some unused CSS in our CSS class library. There might also be some other optimization tasks we could undertake to improve the library that we should document as well.

The point of this ticket is to get a notion of the scale of the amount of work it will take to clean up the CSS library and figure out the best way to break it down.

Acceptance Criteria

pdavies88 commented 2 years ago

Formation Cleanup: Repo veteran-facing-services-tools

Assumptions: if it is not used in any of the following repos it can be removed:

Overarching I believe this should be a more manual process that using a tool to do this task. There are a lot of references to sub references and I think caution should be used.

Discussion:

Epic Cleanup Tickets

Tests and Javascript Cleanup Sub Tickets I think we can completely remove these but this ticket would be to verify that

Fonts and Images Cleanup Sub Tickets There are so many PNGs and SVGs that I can't find referenced as being used anywhere can we clean this up and reduce the bloat

Sass Cleanup Sub Tickets Goal for each ticket is to determine if the css rule is in use and if the file can be condensed. Ideally we should have less files per folder and a clearer idea of what is in each folder. This may require additional comments to show where the css rule is being used

k80bowman commented 2 years ago

We need to review what of our CSS is being used by the teamsites. Info can be found here: https://department-of-veterans-affairs.github.io/veteran-facing-services-tools/platform/architecture/teamsite/

Currently the following is being imported from vets-website: https://github.com/department-of-veterans-affairs/vets-website/blob/master/src%2Fapplications%2Fproxy-rewrite%2Fsass%2Fstyle-consolidated.scss

Team contact: Josh Tuscher Joshua.Tuscher@va.gov

Code being imported from Formation: