Skip to content

fix(OverflowMenu): fix types #19158

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wkeese
Copy link
Contributor

@wkeese wkeese commented Apr 17, 2025

Fix OverflowMenuProps to include properties that get passed through to IconButton, for example align, autoAlign, and tooltip.

The alternative is to list the properties manually, which is what #19131 did for the align prop, but not for the other props.

Relatedly, fix TableToolbarMenuProps to extend OverflowMenuProps. I also removed the aria-label as it's redundant with iconDescription.

Changelog

Changed

  • Fixed Typescript types of OverflowMenu and TableToolbar.

Testing / Reviewing

Built carbon, and also built my app with the new carbon.

@wkeese wkeese requested review from a team as code owners April 17, 2025 02:07
@wkeese wkeese requested review from heloiselui and annawen1 April 17, 2025 02:07
Copy link

netlify bot commented Apr 17, 2025

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

Name Link
🔨 Latest commit 009cbd2
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/6830f8fcc8befb00081bbcec
😎 Deploy Preview https://deploy-preview-19158--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.

Copy link

netlify bot commented Apr 17, 2025

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 009cbd2
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/6830f8fc8c5ea1000866d6a2
😎 Deploy Preview https://deploy-preview-19158--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.

Copy link

codecov bot commented Apr 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.91%. Comparing base (b8c7071) to head (009cbd2).
Report is 34 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19158      +/-   ##
==========================================
+ Coverage   84.87%   84.91%   +0.04%     
==========================================
  Files         372      373       +1     
  Lines       14431    14504      +73     
  Branches     4748     4765      +17     
==========================================
+ Hits        12248    12316      +68     
- Misses       2037     2040       +3     
- Partials      146      148       +2     

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

Fix OverflowMenuProps to include properties that get passed through
to IconButton, for example align, autoAlign, and tooltip.

Relatedly, fix TableToolbarMenuProps to extend OverflowMenuProps.
I also removed the aria-label as it's redundant with iconDescription.
@wkeese wkeese force-pushed the fix-overflow-menu-props branch from 8588779 to 0d42224 Compare May 23, 2025 22:22
PR carbon-design-system#19131 added align manually but I changed it to inherit
from IconButtonProps (rather than repeating the definition).
@wkeese wkeese force-pushed the fix-overflow-menu-props branch from 9a54eed to 009cbd2 Compare May 23, 2025 22:38
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