-
Notifications
You must be signed in to change notification settings - Fork 159
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(callout): web-component created #3983
feat(callout): web-component created #3983
Conversation
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.
Nice progress @raphaelamadeu!
} | ||
|
||
// eslint-disable-next-line class-methods-use-this | ||
protected render() { |
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.
To align to the rest of the codebase:
protected render() { | |
render() { |
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.
I've updated it, thanks for the review!
<div class="${prefix}--callout__container"> | ||
<div class="${prefix}--callout__column"> | ||
<div class="${prefix}--callout__content"> | ||
<slot /> | ||
</div> | ||
</div> | ||
</div> |
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.
To avoid duplicate elements (host and <div class="${prefix}--callout__container">
):
<div class="${prefix}--callout__container"> | |
<div class="${prefix}--callout__column"> | |
<div class="${prefix}--callout__content"> | |
<slot /> | |
</div> | |
</div> | |
</div> | |
<div class="${prefix}--callout__column"> | |
<div class="${prefix}--callout__content"> | |
<slot /> | |
</div> | |
</div> |
Please make sure the host element has the style of .bx--callout__container
. Please refer to https://github.com/carbon-design-system/ibm-dotcom-library/blob/v1.11.0-rc.0/packages/web-components/docs/coding-conventions.md#custom-element-itself-as-an-eleement for more details.
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.
I've updated it, thanks for the review!
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.
@asudoh We still need the container, in order to maintain the structure seen in the styles package scss
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.
LGTM 👍 - Thanks @raphaelamadeu!
Deploy preview created for package Built with commit: a91c9c2bfa88557ee3c2682318d9a3ee59db39ab |
@raphaelamadeu there are some build issues, can you take a look? |
Deploy preview created for package Built with commit: a91c9c2bfa88557ee3c2682318d9a3ee59db39ab |
@raphaelamadeu looks like there was an impact on the React side, can you doublecheck? |
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.
Marking as request changes
as there looks like a number of diffs on the React side.
@jeffchew They are now resolved. |
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.
Thank you @raphaelamadeu !
Related Ticket(s)
#3638
Description
Callout
internal pattern was created.