-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(icon): incorporate diverged changes with fixes
Resolve major differences between main and the s2 icons branch after rebase. Improves comments and handles/logs additional errors. Updates icon loader and utilities to use new format without medium/large scale, and changed icon directories. Some notable fixes made after a couple issues were encountered: - Replaces some deprecated S1 icons with S2 icons in docs example story. - Fixes issue with wrong UI icon size sometimes being displayed in Icon Template (Arrow 100 was being replaced with Arrow 400). - Fixes ordering with alphaNumericSort due to regex not matching
- Loading branch information
Showing
6 changed files
with
556 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,20 @@ | ||
export const IconLoader = async () => ({ | ||
icons: { | ||
workflow: { | ||
medium: await import.meta.glob( | ||
"/node_modules/@adobe/spectrum-css-workflow-icons/dist/18/*.svg", | ||
{ | ||
eager: true, | ||
query: "?raw", | ||
import: "default", | ||
} | ||
), | ||
large: await import.meta.glob( | ||
"/node_modules/@adobe/spectrum-css-workflow-icons/dist/24/*.svg", | ||
{ | ||
eager: true, | ||
query: "?raw", | ||
import: "default", | ||
} | ||
), | ||
}, | ||
ui: { | ||
medium: await import.meta.glob( | ||
"/node_modules/@spectrum-css/ui-icons/dist/medium/*.svg", | ||
{ | ||
eager: true, | ||
query: "?raw", | ||
import: "default", | ||
} | ||
), | ||
large: await import.meta.glob( | ||
"/node_modules/@spectrum-css/ui-icons/dist/large/*.svg", | ||
{ | ||
eager: true, | ||
query: "?raw", | ||
import: "default", | ||
} | ||
), | ||
}, | ||
workflow: await import.meta.glob( | ||
"/node_modules/@adobe/spectrum-css-workflow-icons/dist/assets/svg/*.svg", | ||
{ | ||
eager: true, | ||
query: "?raw", | ||
import: "default", | ||
} | ||
), | ||
ui: await import.meta.glob( | ||
"/node_modules/@spectrum-css/ui-icons/dist/svg/*.svg", | ||
{ | ||
eager: true, | ||
query: "?raw", | ||
import: "default", | ||
} | ||
), | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.