-
Notifications
You must be signed in to change notification settings - Fork 4
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
MOON-338: Add component CardSelector #460
base: develop
Are you sure you want to change the base?
Conversation
…ate disabled & cardActions
…bnail with image & icon
…bnail props, add aria attributes
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.
For reference this is the jcontent-specific implementation from the old design system https://github.com/Jahia/jcontent/blob/master/src/javascript/ContentEditor/DesignSystem/ReferenceCard/ReferenceCard.jsx
It looks like this has support for most of the information that's currently included in it, with a small comment regarding EmptyCardSelector
.
onClick={e => handleOnClick(e)} | ||
{...props} | ||
> | ||
{label && <Typography className={clsx('moonstone-emptyCardSelector_label')}>{label}</Typography>} |
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.
From jcontent usage, looks like we make use of both icon and label for the empty card display. Is it possible to have them here as well? https://github.com/Jahia/jcontent/blob/master/src/javascript/ContentEditor/DesignSystem/ReferenceCard/ReferenceCard.jsx#L195-L200
JIRA
https://jira.jahia.org/browse/MOON-338
Description
Add components
CardSelector
&EmptyCardSelector
Component
CardSelector
has dragging icon enabled withisDraggable
prop but is not currently handling dragging