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

feat(cxl-ui): [cxl-notification] document renderer function #245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anoblet
Copy link
Collaborator

@anoblet anoblet commented Dec 21, 2022

No description provided.

@github-actions
Copy link

github-actions bot commented Dec 21, 2022

size-limit report 📦

Path Size
packages/cxl-ui/pkg/dist-web/cxl-ui-jwplayer.js, packages/cxl-ui/pkg/dist-web/cxl-ui-playbooks.js, packages/cxl-ui/pkg/dist-web/cxl-ui.js 65.7 KB (0%)

@@ -5,6 +5,7 @@ export class CXLNotification extends Notification {
return 'cxl-notification';
}

// Provide a default renderer which appends all child nodes to the notification root element.
Copy link

Choose a reason for hiding this comment

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

Well I can see that from the code, but what's the need?

Copy link

Choose a reason for hiding this comment

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

Well I can see that from the code, but what's the need?

Maybe this clears it: https://lit.dev/docs/components/shadow-dom/#slots

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated to reflect the need for this strategy as well as a reference to the Slack discussion (https://cxlworld.slack.com/archives/C01JABH8AHX/p1662121897793169).

Copy link

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

@anoblet anoblet Dec 22, 2022

Choose a reason for hiding this comment

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

@saas786 I can add it you would like. Though we aren't using slots here. There's no slot or slot name="" node. All we are doing is moving direct children to vaadin-notification-card.

Copy link

Choose a reason for hiding this comment

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

@saas786 I can add it you would like. Though we aren't using slots here. There's no slot or slot name="" node. All we are doing is moving direct children to vaadin-notification-card.

Not specifically because of slots, but rather DOM rendering point of view, as far as I am aware, child elements won't render otherwise.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated

@anoblet anoblet force-pushed the anoblet/feat/cxl-notification branch 2 times, most recently from 845ee16 to 1f464a2 Compare December 21, 2022 14:56
@anoblet anoblet force-pushed the anoblet/feat/cxl-notification branch from 1f464a2 to 8e17f1c Compare December 22, 2022 15:51
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.

3 participants