-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix(ui): Replace current spinning webfont icon with svg icons #21012
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
Conversation
❗ Preview Environment undeploy from Bunnyshell failedSee: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
linghaoSu
left a comment
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.
|
Thanks for pointing it out @linghaoSu pod-color-fix.mp4 |
nitishfy
left a comment
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.
LGTM!
|
@surajyadav1108 could you please resolve conflicts ? |
Resolved. |
crenshaw-dev
left a comment
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.
This change is awesome! My only concern is the affect on bundle size.
Before:
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (16.5 MiB)
main.b9d7eb03e2adee59afc8.js
After:
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (19.2 MiB)
main.ee9e8916fc9c34c77899.js
Is there some tree-shaking improvement we can make? Alternatively, can we just hard-code the part we need?
will try and hardcode all spinning SVGs |
a6fcf83 to
382120a
Compare
Signed-off-by: Surajyadav <[email protected]>
382120a to
51cf8f0
Compare
Signed-off-by: Surajyadav <[email protected]>
1f87c13 to
402fe38
Compare
Signed-off-by: Surajyadav <[email protected]>
Signed-off-by: Surajyadav <[email protected]>
Signed-off-by: Surajyadav <[email protected]>
Signed-off-by: Surajyadav <[email protected]>
Signed-off-by: Surajyadav <[email protected]>
Signed-off-by: Surajyadav <[email protected]>
Signed-off-by: Surajyadav <[email protected]>
Signed-off-by: Surajyadav <[email protected]>
|
you can merge this now @crenshaw-dev used SVG directly
Screenshots Spinning-icon-svg.mp4spinning-icon-svg-3.mp4 |
|
Thanks, @surajyadav1108! One more request: can you add comments where the SVGs are hard-coded linking to the original source? And we might have to provide some kind of copyright notice to comply with the upstream license. |
Signed-off-by: Surajyadav <[email protected]>
|
@crenshaw-dev Added original resource, sorry for the late response 😅 |
…oj#21012) Signed-off-by: Surajyadav <[email protected]> Signed-off-by: Suraj yadav <[email protected]>
…oj#21012) Signed-off-by: Surajyadav <[email protected]> Signed-off-by: Suraj yadav <[email protected]> Signed-off-by: Kanika Rana <[email protected]>
…oj#21012) Signed-off-by: Surajyadav <[email protected]> Signed-off-by: Suraj yadav <[email protected]> Signed-off-by: Oliver Gondža <[email protected]>
…oj#21012) Signed-off-by: Surajyadav <[email protected]> Signed-off-by: Suraj yadav <[email protected]>
…oj#21012) Signed-off-by: Surajyadav <[email protected]> Signed-off-by: Suraj yadav <[email protected]>



Webfonts have a problem in spinning icons (wobbling issue) which is well discussed and documented
reference: FortAwesome/Font-Awesome#16495
Closes: #10065
This might look like an overkill to fix this minor issue but Switching to svg was the only way. I did try tweaking css but didn't work.
before:
180071953-9753a616-8b90-4153-9986-8d22439ee13e.mov
broken-icon-spinner-2.mp4
After:
fixed-spinner-light-2.mp4
Checklist: