Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace all icons with iconify ones #144

Merged
merged 2 commits into from
Sep 26, 2022
Merged

refactor: replace all icons with iconify ones #144

merged 2 commits into from
Sep 26, 2022

Conversation

brc-dd
Copy link
Member

@brc-dd brc-dd commented Sep 24, 2022

closes #140

Note: We were (and are) using "Feather Icons". These aren't there on the Icones website. The ones present there are "Feather Icon" (no trailing s 😅). So for searching use the official tool instead of Icones. (x-ref: antfu-collective/icones#93)

Also, IG the dependent projects will need to first migrate before merging this. Or we can probably restore the icons directory for now. And when all of them are using iconify icons, we can remove it.

Since feather icons are stroke-based (we had earlier modified them to be fill-based), there are certain changes to use color instead of fill. fill: currentColor is still present where icon is a prop, otherwise it's removed.

@netlify
Copy link

netlify bot commented Sep 24, 2022

Deploy Preview for sefirot-story ready!

Name Link
🔨 Latest commit 55c540e
🔍 Latest deploy log https://app.netlify.com/sites/sefirot-story/deploys/6331112a1714ec00092fd425
😎 Deploy Preview https://deploy-preview-144--sefirot-story.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov
Copy link

codecov bot commented Sep 24, 2022

Codecov Report

Base: 32.85% // Head: 35.18% // Increases project coverage by +2.32% 🎉

Coverage data is based on head (55c540e) compared to base (f081882).
Patch coverage: 42.85% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #144      +/-   ##
==========================================
+ Coverage   32.85%   35.18%   +2.32%     
==========================================
  Files         178       95      -83     
  Lines        8445     7866     -579     
  Branches      126      126              
==========================================
- Hits         2775     2768       -7     
+ Misses       5670     5098     -572     
Impacted Files Coverage Δ
lib/components/SDropdownSectionFilter.vue 0.00% <0.00%> (ø)
lib/components/SInputDropdown.vue 0.00% <0.00%> (ø)
lib/components/SInputDropdownItemAvatar.vue 0.00% <0.00%> (ø)
lib/components/SInputDropdownItemText.vue 0.00% <0.00%> (ø)
lib/components/SInputFile.vue 0.00% <0.00%> (ø)
lib/components/SInputSelect.vue 0.00% <0.00%> (ø)
lib/components/SSheet.vue 0.00% <0.00%> (ø)
lib/components/SSnackbar.vue 0.00% <0.00%> (ø)
lib/components/STable.vue 0.00% <0.00%> (ø)
lib/components/STableCellText.vue 0.00% <0.00%> (ø)
... and 8 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@netlify
Copy link

netlify bot commented Sep 24, 2022

Deploy Preview for sefirot-docs ready!

Name Link
🔨 Latest commit 55c540e
🔍 Latest deploy log https://app.netlify.com/sites/sefirot-docs/deploys/6331112a9a7bfa000859c039
😎 Deploy Preview https://deploy-preview-144--sefirot-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@@ -608,15 +608,16 @@ function handleClick(): void {

.icon-svg {
fill: currentColor;
transition: fill 0.25s;
transition-property: color, fill;
Copy link
Member Author

@brc-dd brc-dd Sep 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Earlier there were no transitions (color was being modified but fill was set to currentColor, browsers don't animate that. Ref.). These changes will animate them, but I don't think we need these transitions. Open SButton > Icon on Histoire (main deploy) and try changing the color mode (cmd+shift+d). Do the same for preview deploy. There seems sort of delay in current version.

@kiaking
Copy link
Member

kiaking commented Sep 26, 2022

Thanks a lot! I was thinking to go with Phosphor and ditch Feather 👀

Also, IG the dependent projects will need to first migrate before merging this.

There's actually one, that currently uses this version of Sefirot, so I'll update that project as well. I'll merge this one first, and then work on with the project 👍

I'll take over the PR from here 🙌 (including changes to Phosphor icons as well

@kiaking
Copy link
Member

kiaking commented Sep 26, 2022

I've migrated to ph icon instead and restored the PreLoader icon with the name SSpinner. For this spinner icon I wanted the previous look but couldn't find on icons.js, so... I just went ahead to create it as a component, rather than icon 😅

@kiaking kiaking merged commit e9bd2bb into main Sep 26, 2022
@kiaking kiaking deleted the refactor/icons branch September 26, 2022 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Icon] Integrate antfu/icones or iconify
2 participants