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(block, block-section): add expanded property and deprecate open property #11582

Merged
merged 5 commits into from
Mar 5, 2025

Conversation

Elijbet
Copy link
Contributor

@Elijbet Elijbet commented Feb 18, 2025

Related Issue: #6473, #11225

Summary

Deprecate open prop in favor of expanded. Add logger warning for deprecation to help inform users about the deprecated property and guide them towards using the recommended alternatives.

@Elijbet Elijbet changed the title deprecated(block): deprecate open/close props in favor of expanded/collapsed feat(block, block-section): add expanded property and deprecate open property Feb 18, 2025
@Elijbet Elijbet changed the title feat(block, block-section): add expanded property and deprecate open property feat(block, block-section): add expanded property and deprecate open property Feb 18, 2025
@Elijbet Elijbet added pr ready for visual snapshots Adding this label will run visual snapshot testing. enhancement Issues tied to a new feature or request. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Feb 18, 2025
Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions.

@github-actions github-actions bot added Stale Issues or pull requests that have not had recent activity. and removed Stale Issues or pull requests that have not had recent activity. labels Feb 28, 2025
@Elijbet Elijbet force-pushed the elijbet/11225-block-to-use-expanded-prop branch from 55fcf6c to 15a469d Compare March 3, 2025 22:05
@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 Mar 3, 2025
Copy link
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.

🚀 Review comments from #11003 (review) are also applicable here. Good to merge afterwards!

@@ -122,23 +122,23 @@ export const darkModeRTL_TestOnly = (): string => html`
<calcite-block
heading="Heading"
description="description"
open
expanded
collapsible
Copy link
Member

Choose a reason for hiding this comment

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

After seeing the renamed prop in context, I think we should deprecated collapsible in favor of expandable. We can tackle this separately to allow for some initial discussion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@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 Mar 5, 2025
@Elijbet Elijbet merged commit 046f410 into dev Mar 5, 2025
13 checks passed
@Elijbet Elijbet deleted the elijbet/11225-block-to-use-expanded-prop branch March 5, 2025 20:25
benelan added a commit that referenced this pull request Mar 6, 2025
* origin/dev: (80 commits)
  build(deps): update nx monorepo to v20.4.6 (#11662)
  build(deps): update arcgis to ^4.32.7 (#11648)
  build: update browserslist db (#11639)
  build(deps): update eslint (#11670)
  build(deps): update dependency chromatic to v11.26.1 (#11669)
  build(deps): update dependency rollup to v4.34.9 (#11661)
  build(deps): update dependency tsx to v4.19.3 (#11658)
  chore: release next
  docs(text-area): update limitText description (#11672)
  feat(block, block-section): add `expanded` property and deprecate `open` property (#11582)
  feat(list-item, list): add `expanded` property and deprecate `open` property (#11003)
  chore: release next
  fix(tabs): redisplay close button when more than one tab is closable (#11492)
  test(shell-panel): Fix token story set up (#11635)
  chore: set up 3rd-party license generation (#11640)
  build(deps): update dependency happy-dom to v17.1.8 (#11649)
  build(deps): update dependency prettier to v3.5.2 (#11642)
  build(deps): update dependency happy-dom to v17.1.6 (#11641)
  chore: release next
  fix(card-group): Restore default gap spacing (#11638)
  ...
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.

2 participants