Proposal: Remove SVGs from JSX #382

Merged
enjikaka merged 9 commits from svg-proposal into main 2023-03-03 11:18:28 +00:00
enjikaka commented 2023-03-02 18:56:47 +00:00 (Migrated from github.com)

Background: https://twitter.com/_developit/status/1382838799420514317

  • Move "dumb" icons to icons.svg and use via new element that renders an <svg> with <use>.
  • Tidy up some alignments and DOM structure around icons (remove unneeded DOM nodes - better CSS formats)

Diffgifs:

compare

compare2

Background: https://twitter.com/_developit/status/1382838799420514317 - Move "dumb" icons to icons.svg and use via new <Icon> element that renders an `<svg>` with `<use>`. - Tidy up some alignments and DOM structure around icons (remove unneeded DOM nodes - better CSS formats) Diffgifs: ![compare](https://user-images.githubusercontent.com/877455/222525056-9744cf5f-042e-4d5a-871c-0ba9818aefc2.gif) ![compare2](https://user-images.githubusercontent.com/877455/222525097-e6646d87-884a-4eb0-a37b-a138af7dc5da.gif)
v0l (Migrated from github.com) approved these changes 2023-03-03 11:18:13 +00:00
v0l (Migrated from github.com) left a comment

Nice one thanks!

Nice one thanks!
Sign in to join this conversation.
No description provided.