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

Add Card Content component #4101

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

joshwooding
Copy link
Contributor

@joshwooding joshwooding commented Sep 13, 2024

Long overdue, but had some spare time to create something quickly.

Decisions:

  • Do we need one per LinkCard and InteractableCard ?

Copy link

vercel bot commented Sep 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
saltdesignsystem ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 16, 2024 10:05am

Copy link

changeset-bot bot commented Sep 13, 2024

🦋 Changeset detected

Latest commit: ea74d7c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@salt-ds/core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

.storybook/main.ts Outdated Show resolved Hide resolved
const cardRef = useRef<HTMLDivElement | null>(null);
const handleRef = useForkRef(cardRef, ref);

useLayoutEffect(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to update this

const observer = new MutationObserver((mutations) => {
for (const mutation of mutations) {
for (const addedNode of mutation.addedNodes) {
console.log(addedNode);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the aim here to make it so that if there's no children (subtree false? childList false?), add the noContentComponent class suffix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this was really just to show the poc

@joshwooding joshwooding force-pushed the add-card-content-component branch from 64823c3 to 1bc7688 Compare September 16, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants