Skip to content
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

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

MOON-338: Add component CardSelector #460

wants to merge 9 commits into from

Conversation

Eevolee
Copy link
Contributor

@Eevolee Eevolee commented Nov 27, 2024

JIRA

https://jira.jahia.org/browse/MOON-338

Description

Add components CardSelector & EmptyCardSelector
Component CardSelector has dragging icon enabled with isDraggable prop but is not currently handling dragging

@Eevolee Eevolee added the minor Increment the minor version when merged label Nov 27, 2024
Copy link
Contributor

@gflores-jahia gflores-jahia left a 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>}
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants