-
Notifications
You must be signed in to change notification settings - Fork 0
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
Vulcan: Add html image dimensions for lighthouse #1781
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
📦 Next.js Bundle Analysis for @ifixit/commerce-frontendThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
- low-hanging prop addition to fix another lighthouse issue
objectFit="cover" | ||
src={imageUrl} | ||
alt="" | ||
outline="1px solid" | ||
outlineColor="gray.300" |
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.
Why did you change border
to outline
?
Oops I didn't read the CR notes first
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.
CR 🌯 with a minor question
Issue
We're getting dinged in Lighthouse for not having html image dimensions applied. Let's add them.
Modified
CR
http://localhost:3000/Vulcan/Dryer_Not_Spinning, etc
I swapped the image
border
in Problem.tsx tooutline
so we can apply dimensions directly and not have to worry about the extra 2px a border would add.Linked to https://github.com/iFixit/ifixit/issues/48516
qa_req 0 (produces no visual changes)