-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore(lumx-icons): override twitter icon #1028
Conversation
3cf4837
to
28bcf88
Compare
6675dc1
to
d247232
Compare
856b243
to
0231619
Compare
|
||
|
||
// Bundle TS types in D.TS files | ||
const bundleType = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a specific reason why we need types on the released version for our icons?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes the mdi icon types are really trivial but when you import non-typed module in TS project it can produce errors or warnings (depending on the project config). We did had types before from mdi (and from the v4-to-v5 alias file), I just replaced manual type definition with automatic .d.ts
bundling (we already use on @lumx/react
)
4a3c08d
to
18a1cac
Compare
This reverts commit 6dcc77e1f63bc1a0590c3f38473550dffe7f4f1e.
18a1cac
to
de8eacb
Compare
Re-running an prerelease to re-test everything... |
Tested in another project using both JS & font icons
|
General summary
override/override-icons
: contains SVG icons to override MDIoverride/alias-icons.js
: config contains mapping from icon name to aliasesoverride/generate.js
: script that generate the TS & Font/SCSS overrides and then TS & Font/SCSS aliasesWe'll use aliases to keep retro-compatibility when changing version or for brand renaming (ex: twitter). Overrides will help us update or restore brand logo because MDI is deprecating them.
Testing
alpha-icon-override-twitter
https://github.com/lumapps/design-system/actions/runs/6956038315/job/18962918745mdiTwitter
should still work but should have been swapped to the new X logomdiXTwitter
should be the same asmdiTwitter
.mdi-twitter
should still work but should have been swapped to the new X logo.mdi-x-twitter
should be the same as.mdi-twitter