-
Notifications
You must be signed in to change notification settings - Fork 90
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: ea74d7c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
packages/core/src/card/Card.tsx
Outdated
const cardRef = useRef<HTMLDivElement | null>(null); | ||
const handleRef = useForkRef(cardRef, ref); | ||
|
||
useLayoutEffect(() => { |
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.
Need to update this
packages/core/src/card/Card.tsx
Outdated
const observer = new MutationObserver((mutations) => { | ||
for (const mutation of mutations) { | ||
for (const addedNode of mutation.addedNodes) { | ||
console.log(addedNode); |
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.
Is the aim here to make it so that if there's no children (subtree false? childList false?), add the noContentComponent
class suffix?
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.
Yeah, this was really just to show the poc
64823c3
to
1bc7688
Compare
1bc7688
to
ea74d7c
Compare
Long overdue, but had some spare time to create something quickly.
Decisions: