Skip to content

fix: narrow react element and child types#22011

Open
adamalston wants to merge 1 commit intocarbon-design-system:mainfrom
adamalston:n/a-react-element
Open

fix: narrow react element and child types#22011
adamalston wants to merge 1 commit intocarbon-design-system:mainfrom
adamalston:n/a-react-element

Conversation

@adamalston
Copy link
Copy Markdown
Contributor

Partially addresses #20452

Narrowed React element and child types.

Changelog

Changed

  • Narrowed React element and child types.

Testing / Reviewing

Existing tests should cover these changes.

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 guide

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 12, 2026

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit bd47367
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69dbef96a3e7330008bfa5aa
😎 Deploy Preview https://deploy-preview-22011--v11-carbon-react.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
Copy Markdown

netlify bot commented Apr 12, 2026

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit bd47367
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69dbef95960257000802f124
😎 Deploy Preview https://deploy-preview-22011--v11-carbon-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.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 12, 2026

Codecov Report

❌ Patch coverage is 84.90566% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.89%. Comparing base (597001a) to head (bd47367).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...src/components/FluidTimePicker/FluidTimePicker.tsx 33.33% 4 Missing ⚠️
...src/components/ContentSwitcher/ContentSwitcher.tsx 88.00% 3 Missing ⚠️
packages/react/src/components/Theme/index.tsx 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22011      +/-   ##
==========================================
- Coverage   94.90%   94.89%   -0.02%     
==========================================
  Files         541      541              
  Lines       45253    45270      +17     
  Branches     6359     6348      -11     
==========================================
+ Hits        42949    42959      +10     
- Misses       2172     2179       +7     
  Partials      132      132              
Flag Coverage Δ
main-packages 89.13% <84.90%> (-0.03%) ⬇️
web-components 97.70% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

Copy link
Copy Markdown
Contributor

@maradwan26 maradwan26 left a comment

Choose a reason for hiding this comment

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

LGTM

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants