Closed 7emansell closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
nypl-design-system | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 17, 2024 5:35pm |
I did not pull this up in the browser when I reviewed and I am just now seeing that the custom image that is being passed in is not showing in the browser. The <image>
rendered by the custom Image
component is in the DOM, but it is hidden and the image URL is not being passed to the background-image
attribute that is being used to display the image. This pattern mirriors what we discussed about the FeaturedContent
component.
With that realization, would we gain anything by scraping the image path from the custom component and passing it as the background-image
? What was the main need for using the NextJS image?
Fixes JIRA ticket DSD-1840
This PR does the following:
imageProps
so that a custom image component can be passed into theHero
How has this been tested?
Locally, release candidates in DC (passing in a Next Image)
Accessibility concerns or updates
Accessibility Checklist
aria-live
is used, a screenreader was used to verify the text is read.ref
s, focus management was reviewed.Open Questions
component
NOT to be one of the props picked from theComponentImageProps
. But if it is, we can use the already existing functionality in the DSImage
that replaces the component. So there ends up being very few code changes, and I'm worried I'm totally missing something..Checklist:
Front End Review: