-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
🪟 🎨 New design and cleanup for CircleLoader #17582
Conversation
|
||
:export { | ||
// Export colors to be used in SVG gradients | ||
gradientStart: colors.$blue; |
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.
ℹ️ linear-gradient
doesn't work for fill
on SVG elements, thus the gradient still need to be defined in SVG. To get access to the colors in JS, I exported them from here explicitally. They are already exported from the theme.ts
file, but I consider this still to be going away once we're removing styled components, so in this case where we'll need to have this export even with SASS, I wanted to make it more explicit.
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.
Just one minor comment, otherwise looks good to me 👍
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.
Tested locally and LGTM
* New design and cleanup for CircleLoader * Adjust snapshots
What
Improve the design of the StatusIcon circular loader:
Peek.2022-10-04.23-00.mp4
Peek.2022-10-04.23-20.mp4
This also cleans up the CircleLoader component and move it from styled-component to SCSS.
Note: The CSS classes in the snapshots seemed to change just as part of compiling new SCSS. We should exclude them from being matched, but I think that should be separate from this PR.