style-guide icon indicating copy to clipboard operation
style-guide copied to clipboard

Icons assets as svg

Open clxandstuff opened this issue 3 years ago • 0 comments

After this change, we don't need to include icons JS scripts to use icons components: Icon, MathSymbol, SubjectIcon, MobileIcon. It should also unblock main thread when loading icons leading to better page performance.

Icon components use new strategy to retrieve icon from sprite, from:

<svg>
  <use xlink:href="#icon-academic_cap" />
</svg>

to


<svg>
  <use href="https://style-guide.brainly.com/images/svg-sprites/icons-tg6372uy1.svg#icon-academic_cap" />
</svg>

clxandstuff avatar Oct 13 '22 09:10 clxandstuff