NYPL / nypl-design-system

React design system putting accessibility first.
https://nypl.github.io/nypl-design-system/reservoir/v3/?path=/docs/welcome--docs
Apache License 2.0
71 stars 6 forks source link

DSD-1840: Allowing custom image component in Hero #1683

Closed 7emansell closed 1 month ago

7emansell commented 1 month ago

Fixes JIRA ticket DSD-1840

This PR does the following:

How has this been tested?

Locally, release candidates in DC (passing in a Next Image)

Accessibility concerns or updates

Accessibility Checklist

Open Questions

Checklist:

Front End Review:

vercel[bot] commented 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
bigfishdesign13 commented 1 month ago

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?