Skip to content

Conversation

@amal-k-joy
Copy link
Contributor

Closes #8142

This implementation introduces stacking tearsheets using a new composable approach.
Unlike the current tearsheet implementation — where all stacking logic is embedded within the component — the new model externalizes that logic into a dedicated wrapper:
<StackProvider stackStepSize="lg"></StackProvider> //stackStepSize is optional and be defaulted to 1 rem

In this setup, the StackProvider encapsulates all stacking behavior.
Each component simply needs to notify the provider when a tearsheet is opened. The component can then consume the calculated stacking information from the context and apply it as needed.

Styling adjustments will still be handled within the component itself, as these may vary between different components.

How did you test and verify your work?

local storybook

PR Checklist

As the author of this PR, before marking ready for review, confirm you:

  • Reviewed every line of the diff
  • Updated documentation and storybook examples
  • Wrote passing tests that cover this change
  • Addressed any impact on accessibility (a11y)
  • Tested for cross-browser consistency
  • Validated that this code is ready for review and status checks should pass

More details can be found in the pull request section of
our contributing docs.

@netlify
Copy link

netlify bot commented Oct 16, 2025

Deploy Preview for ibm-products-web-components ready!

Name Link
🔨 Latest commit 2696699
🔍 Latest deploy log https://app.netlify.com/projects/ibm-products-web-components/deploys/68f1e0ac48743a0008770cd6
😎 Deploy Preview https://deploy-preview-8486--ibm-products-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Oct 16, 2025

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit 2696699
🔍 Latest deploy log https://app.netlify.com/projects/carbon-for-ibm-products/deploys/68f1e0ac23b6860008782538
😎 Deploy Preview https://deploy-preview-8486--carbon-for-ibm-products.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@amal-k-joy amal-k-joy changed the title Stacking tearsheet implementation using Stackprovider feat(Tearsheet): stacking tearsheet implementation using Stackprovider Oct 16, 2025
@codecov
Copy link

codecov bot commented Oct 16, 2025

Codecov Report

❌ Patch coverage is 46.54088% with 170 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.69%. Comparing base (1c4fa62) to head (2696699).
⚠️ Report is 203 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8486      +/-   ##
==========================================
+ Coverage   79.38%   84.69%   +5.31%     
==========================================
  Files         474      383      -91     
  Lines       20340    17709    -2631     
  Branches     5006     4158     -848     
==========================================
- Hits        16146    14999    -1147     
+ Misses       4194     2710    -1484     
Components Coverage Δ
ibm-products 82.32% <69.23%> (+1.74%) ⬆️
ibm-products-web-components 88.25% <82.27%> (+11.53%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tearsheet: Implement stacked tearsheet

2 participants