-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
base: main
Are you sure you want to change the base?
fix(OverflowMenu): fix types #19158
Conversation
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. 🚀 New features to boost your workflow:
|
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.
8588779
to
0d42224
Compare
PR carbon-design-system#19131 added align manually but I changed it to inherit from IconButtonProps (rather than repeating the definition).
9a54eed
to
009cbd2
Compare
Fix
OverflowMenuProps
to include properties that get passed through toIconButton
, for examplealign
,autoAlign
, andtooltip
.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 extendOverflowMenuProps
. I also removed thearia-label
as it's redundant withiconDescription
.Changelog
Changed
OverflowMenu
andTableToolbar
.Testing / Reviewing
Built carbon, and also built my app with the new carbon.