-
Notifications
You must be signed in to change notification settings - Fork 82
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: Entity list item isSelected prop #2312
feat: Entity list item isSelected prop #2312
Conversation
…d it's corresponding style feat contentful#2077
Add a cursor:pointer when we pass an onClick function to the EntityListItem component
Added the correct styles for the isSelected prop, so it doesn't overlap the existing borders fix contentful#2077
…ty list components style contentful#2077
|
@mgueyraud is attempting to deploy a commit to the Contentful Apps Team on Vercel. A member of the Team first needs to authorize it. |
Marking pull request as stale since there was no activity for 30 days |
Thanks for the contribution @mgueyraud! I will be closing this until or if it's ever ready. That's not meant to pressure you into working on it at all by the way, but there's no need to keep it laying around in the current state 🙂 |
Purpose of PR
Closes #2077.
Add a prop isSelected to the entity list item, and the corresponding styles of it. Basically the same way as the card works.
So, to maintain the consistency of the EntityListItem component, I only override the
backgroundColor
and theboxShadow
when it has theisSelected
prop, so it looks like this by itself:And when it's used within a EntityList component, that component is in charge to add more styles such as left, right and top borders.
PR Checklist
readme.md
file(s)