NCIOCPL / cgov-digital-platform

The Cancer.gov Digital Communications Platform
GNU General Public License v2.0
11 stars 33 forks source link

Enabler: Redo how we build Sprites #3262

Open bryanpizzillo opened 2 years ago

bryanpizzillo commented 2 years ago

Redo how we build sprites and remove Gulp

ESTIMATE TBD

We have updated node-sass and need to change how we build sprites to better support the ncids efforts. There was discussion on what approach will work best. It looks like the two choices are:

Tasks

Notes

bryanpizzillo commented 2 years ago

Investigation Notes:

We use the spritemap to determine the height/width of the background content element when using the icons. This is not generated when using svg-sprite-loader, since that just makes a sprite of what has been asked. It should be noted that USWDS and other design systems we have looked at require the person using the icon to state what size it is in the SASS.

The best fix for this would be to redo how we add our sprites and get rid of all the height/width stuff. It really seems like this was a port from png based sprites only updated to change the filename.

bryanpizzillo commented 2 years ago

We are going to kick the can once again and move out of MVP