Files
livewire-material/resources/svg/symbols/outlined-20/workspaces_outline.svg
T
Andreas Reinhold / reiniandClaude Opus 5 7a95449c82 Draw the 67 Material Symbols Google ships without a viewBox at every size
Google publishes 67 symbols per cut (auto_awesome, insights,
tips_and_updates, battery_50 ...) with width and height but no viewBox,
their paths in 24 units, or 20 in the 20 cut, where every other symbol
draws in `0 -960 960 960`. bin/fetch-symbols dropped the size so CSS
decides it, which left these with no coordinate system: `<x-icon>`
drew them at 1:1, whole only at exactly 24px and cut off or misplaced
at any other size, the 20 cut every small button uses included.
normalise() now turns a file's width and height into its viewBox when
it has none, before dropping them. The 268 files are regenerated from
Google's originals at the recorded SOURCE commit with the fixed step
(each shipped file matched the old step's output first; the other
16,272 do not change), and every path lies inside its new viewBox.
IconTest checks that each shipped symbol has a viewBox and that
`<x-icon name="auto_awesome">` renders in 20 units at size 16 and in 24
at size 32; both fail without the change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 04:18:10 +02:00

1 line
1.9 KiB
XML

<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.042 17.5Q3.646 17.5 2.656 16.51Q1.667 15.521 1.667 14.125Q1.667 12.729 2.656 11.74Q3.646 10.75 5.042 10.75Q6.438 10.75 7.427 11.74Q8.417 12.729 8.417 14.125Q8.417 15.521 7.427 16.51Q6.438 17.5 5.042 17.5ZM10 9.25Q8.604 9.25 7.615 8.26Q6.625 7.271 6.625 5.875Q6.625 4.479 7.615 3.49Q8.604 2.5 10 2.5Q11.396 2.5 12.385 3.49Q13.375 4.479 13.375 5.875Q13.375 7.271 12.385 8.26Q11.396 9.25 10 9.25ZM14.958 17.5Q13.562 17.5 12.573 16.51Q11.583 15.521 11.583 14.125Q11.583 12.729 12.573 11.74Q13.562 10.75 14.958 10.75Q16.354 10.75 17.344 11.74Q18.333 12.729 18.333 14.125Q18.333 15.521 17.344 16.51Q16.354 17.5 14.958 17.5ZM10 7.5Q10.667 7.5 11.146 7.021Q11.625 6.542 11.625 5.875Q11.625 5.208 11.146 4.729Q10.667 4.25 10 4.25Q9.333 4.25 8.854 4.729Q8.375 5.208 8.375 5.875Q8.375 6.542 8.854 7.021Q9.333 7.5 10 7.5ZM5.042 15.75Q5.708 15.75 6.188 15.271Q6.667 14.792 6.667 14.125Q6.667 13.458 6.188 12.979Q5.708 12.5 5.042 12.5Q4.375 12.5 3.896 12.979Q3.417 13.458 3.417 14.125Q3.417 14.792 3.896 15.271Q4.375 15.75 5.042 15.75ZM14.958 15.75Q15.625 15.75 16.104 15.271Q16.583 14.792 16.583 14.125Q16.583 13.458 16.104 12.979Q15.625 12.5 14.958 12.5Q14.292 12.5 13.812 12.979Q13.333 13.458 13.333 14.125Q13.333 14.792 13.812 15.271Q14.292 15.75 14.958 15.75ZM10 5.875Q10 5.875 10 5.875Q10 5.875 10 5.875Q10 5.875 10 5.875Q10 5.875 10 5.875Q10 5.875 10 5.875Q10 5.875 10 5.875Q10 5.875 10 5.875Q10 5.875 10 5.875ZM5.042 14.125Q5.042 14.125 5.042 14.125Q5.042 14.125 5.042 14.125Q5.042 14.125 5.042 14.125Q5.042 14.125 5.042 14.125Q5.042 14.125 5.042 14.125Q5.042 14.125 5.042 14.125Q5.042 14.125 5.042 14.125Q5.042 14.125 5.042 14.125ZM14.958 14.125Q14.958 14.125 14.958 14.125Q14.958 14.125 14.958 14.125Q14.958 14.125 14.958 14.125Q14.958 14.125 14.958 14.125Q14.958 14.125 14.958 14.125Q14.958 14.125 14.958 14.125Q14.958 14.125 14.958 14.125Q14.958 14.125 14.958 14.125Z"/></svg>