Skip to content

feat(block-section): add icon property (deprecates status)#9194

Merged
Elijbet merged 29 commits intomainfrom
elijbet/8110-block-section-deprecate-status-prop-add-icon-prop
May 11, 2024
Merged

feat(block-section): add icon property (deprecates status)#9194
Elijbet merged 29 commits intomainfrom
elijbet/8110-block-section-deprecate-status-prop-add-icon-prop

Conversation

@Elijbet
Copy link
Copy Markdown
Contributor

@Elijbet Elijbet commented Apr 25, 2024

Related Issue: #8110

Summary

Remove the status property and instead add an icon property.

Provide a demo and screenshot coverage.

@Elijbet Elijbet changed the title Elijbet/8110 block section deprecate status prop add icon prop feat(block-section): deprecate status property, add icon property instead Apr 25, 2024
@github-actions github-actions Bot added the enhancement Issues tied to a new feature or request. label Apr 25, 2024
@Elijbet Elijbet marked this pull request as ready for review April 26, 2024 18:21
@Elijbet Elijbet requested a review from a team as a code owner April 26, 2024 18:21
@Elijbet Elijbet added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Apr 26, 2024
@Elijbet Elijbet added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Apr 26, 2024
Comment thread packages/calcite-components/src/components/block-section/block-section.scss Outdated
Copy link
Copy Markdown
Member

@jcfranco jcfranco left a 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.

Comment thread packages/calcite-components/src/components/block-section/block-section.tsx Outdated
flipRtl={iconFlipRtl === "both" || iconFlipRtl === "start"}
icon={this.iconStart}
key="icon-start"
scale="s"
Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Contributor Author

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.

Comment thread packages/calcite-components/src/components/block-section/block-section.tsx Outdated
Copy link
Copy Markdown
Member

@jcfranco jcfranco left a 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.

@Elijbet Elijbet changed the title feat(block-section): deprecate status property, add icon property instead feat(block-section): add icon property (deprecates status) Apr 29, 2024
Copy link
Copy Markdown
Member

@jcfranco jcfranco left a 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. 🎉

Comment thread packages/calcite-components/src/components/block-section/block-section.stories.ts Outdated
Comment thread packages/calcite-components/src/components/block-section/block-section.tsx Outdated
Comment thread packages/calcite-components/src/components/block-section/block-section.scss Outdated
@Elijbet Elijbet added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels May 7, 2024
@Elijbet Elijbet added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels May 7, 2024
@Elijbet Elijbet added skip visual snapshots Pull requests that do not need visual regression testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels May 7, 2024
@Elijbet Elijbet merged commit c31bf36 into main May 11, 2024
@Elijbet Elijbet deleted the elijbet/8110-block-section-deprecate-status-prop-add-icon-prop branch May 11, 2024 01:26
jcfranco added a commit that referenced this pull request Jun 4, 2024
…r switch (#9472)

**Related Issue:** #9454

## Summary

Fixes toggling issue caused by moving switch outside toggle container.

This regression was introduced by #9194.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Issues tied to a new feature or request. skip visual snapshots Pull requests that do not need visual regression testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants