-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: use next/image instead of react-inline-svg #1007
Conversation
π¦ Changeset detectedLatest commit: 7b91b03 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
@@ -60,7 +60,7 @@ | |||
transition: transform 0.4s; | |||
transform: var(--icon-transform); | |||
|
|||
& svg { | |||
& img { |
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.
Since this is no longer an svg, the fill
and stroke
styles below aren't applied and the color is changed. I know you mentioned we are accepting slight rendering differences in the PR description so if this is one of those disregard!
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.
Honestly, I think this is fine. Like you mentioned, we are deprecating these anyways.
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.
Nice!
ποΈ Asana Task
π Preview Link
Description
This PR replaces instances of
?include
andreact-inline-svg
withnext/image
or actual inlined SVGs where appropriate. The packages updated in this PR are used on hashicorp.com; other packages likely won't be updated unless they're transitive dependencies of the packages modified in this PR. There may be slight rendering differences due to the switch but this is acceptable given that these components are relatively ancient and should be replaced (all but code-block),Packages updated:
PR Checklist π
Items in this checklist may not may not apply to your PR, but please consider each item carefully.