Skip to content

Commit

Permalink
feat: Improve icon scaling by using viewBox and fontSize (#671)
Browse files Browse the repository at this point in the history
* Use `ViewBox` for Icons.

* ci: Format code

* Use className instead of style

* ci: Format code

* Update format error

* Apply suggestions from code review

---------

Co-authored-by: Seam Bot <seambot@getseam.com>
Co-authored-by: Evan Sosenko <evan@getseam.com>
  • Loading branch information
3 people authored Jan 22, 2025
1 parent 1f9ac7d commit 94ffcde
Show file tree
Hide file tree
Showing 79 changed files with 258 additions and 141 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"examples:preview": "vite preview examples",
"examples:storybook": "vite examples --host --clearScreen false --mode storybook",
"preexamples:preview": "npm run examples:build",
"generate": "svgr --out-dir src/lib/icons -- assets/icons",
"generate": "svgr --icon --out-dir src/lib/icons -- assets/icons",
"pregenerate": "del src/lib/icons",
"postgenerate": "eslint --fix src/lib/icons",
"format": "eslint --ignore-path .gitignore --fix .",
Expand Down
5 changes: 3 additions & 2 deletions src/lib/icons/AccessCodeKey.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/Add.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/ArrowBack.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/ArrowRestart.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/ArrowRight.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/BatteryLevelCritical.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/BatteryLevelFull.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/BatteryLevelHigh.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/BatteryLevelLow.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/BatteryLevelWired.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/Bee.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/Check.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/CheckBlack.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/CheckGreen.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/CheckboxBlank.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/CheckboxFilled.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/ChevronDown.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/ChevronRight.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/ChevronWide.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/ClimateSettingSchedule.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/Clock.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/Close.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/CloseWhite.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/Copy.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/DotsEllipsisMore.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/Edit.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/ExclamationCircle.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/ExclamationCircleOutline.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/Fan.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/lib/icons/FanOutline.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 94ffcde

Please sign in to comment.