-
Notifications
You must be signed in to change notification settings - Fork 77
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-section): add icon
property (deprecates status
)
#9194
feat(block-section): add icon
property (deprecates status
)
#9194
Conversation
packages/calcite-components/src/components/block-section/block-section.scss
Outdated
Show resolved
Hide 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.
Looks great! A few things:
- Let's target this for the May release. The token work might affect it and it'll also give more time for users to prep for the visual changes this will introduce.
- Can you apply the
visual changes
to the issue? - Can you rephrase the PR title to be more along the lines of:
feat(component): add X prop (deprecates Y)
? We want to highlight the added prop first to align with the commit type.
packages/calcite-components/src/components/block-section/block-section.tsx
Outdated
Show resolved
Hide resolved
flipRtl={iconFlipRtl === "both" || iconFlipRtl === "start"} | ||
icon={this.iconStart} | ||
key="icon-start" | ||
scale="s" |
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.
Does this need to use the getIconScale
util?
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.
block/block-section
don't have scale
currently. It'll be reviewed in #7082. As is, we think of the components that don't have scale as medium
and use small
icons for them.
packages/calcite-components/src/components/block-section/block-section.tsx
Outdated
Show resolved
Hide 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.
Looks great! A few things:
- Let's target this for the May release. The token work might affect it and it'll also give more time for users to prep for the visual changes this will introduce.
- Can you apply the
visual changes
to the issue? - Can you rephrase the PR title to be more along the lines of:
feat(component): add X prop (deprecates Y)
? We want to highlight the added prop first to align with the commit type.
icon
property (deprecates status
)
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.
Good to merge once last round of changes are addressed. 🎉
Related Issue: #8110
Summary
Remove the
status
property and instead add anicon
property.Provide a demo and screenshot coverage.