-
Notifications
You must be signed in to change notification settings - Fork 76
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(block): add icon start/end
properties (deprecate icon
slot and status
), add actions-end
slot (deprecate control
), add content-start
#9535
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.
👍
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.
Aside from a few comments, this LGTM!
Before merging, can you update the PR title to mention the new slots and to call out the deprecated ones (similar to this)?
packages/calcite-components/src/components/block/block.stories.ts
Outdated
Show resolved
Hide resolved
* @slot icon - A slot for adding a leading header icon with `calcite-icon`. | ||
* @slot control - A slot for adding a single HTML input element in a header. | ||
* @slot actions-end - A slot for adding actionable `calcite-action` elements after the content of the component. It is recommended to use two or fewer actions. | ||
* @slot icon - [Deprecated] A slot for adding a leading header icon with `calcite-icon`. Use `icon-start` instead. |
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.
✨🏆✨
icon start/end
properties (deprecate icon
slot and status
), add actions-end
slot (deprecate control
), add content-start
Looks great! |
…d in icon arguments
This is looking great! More on the design side - can we consider using the |
This was documented in #7315, but closed in favor of #7492. Might be best to move forward with that? |
Sure, just noticed it and would be a related adjustment now (just a token change) - the larger re-design should still happen but it is still in design. |
Lookin' even better! 🚀🤘 |
The changes to CSS have been addressed and approved by design and dev.
Related Issue: #4932
Summary
icon-start
andicon-end
properties.status
.icon
in favor oficon-start
.actions-end
slot and deprecatecontrol
slot.content-start
.