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
63 stars 6 forks source link

DSD-1797: Breadcrumbs custom link prop #1643

Closed 7emansell closed 3 months ago

7emansell commented 3 months ago

Fixes JIRA ticket DSD-1797.

This PR does the following:

How has this been tested?

Locally, and in this Turbine branch

Accessibility concerns or updates

Accessibility Checklist

Open Questions

Checklist:

Front End Review:

vercel[bot] commented 3 months 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 Aug 8, 2024 7:26pm
7emansell commented 3 months ago

Looks good but some documentation update. I haven't tested it beyond that time we tested it together and it was working but I'll try to review it in Turbine or DCF if you have a working branch/vercel preview.

https://nypl-ds-test-b59lbu4si-nypl.vercel.app/components/breadcrumbs!

7emansell commented 3 months ago

I feel like customLink is clearer to me as a dev than as (which even as a Chakra convention is slightly confusing) but I agree either could work, so happy to change it!

bigfishdesign13 commented 3 months ago

@7emansell, I don't think as, in this case, is appropriate. As Jackie noted, it doesn't feel right as a component level prop name. Something like linkAs would be better. That said, I am leaning toward the other naming convention. But I think even that could be better. customLinkType or customLinkComponent feels better to me.

Cc @jackiequach @EdwinGuzman