feat(table-toolbar): xs size, contextual layout tokens#22268
Conversation
✅ 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. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ 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. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #22268 +/- ##
==========================================
+ Coverage 95.49% 95.50% +0.01%
==========================================
Files 582 582
Lines 50443 50450 +7
Branches 6746 6744 -2
==========================================
+ Hits 48172 48184 +12
+ Misses 2138 2133 -5
Partials 133 133
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Awesome work @maradwan26!
Other than the two observations mentioned below, everything else is good to go! 🚀
- Observations in React
The tool bar size isn't getting updated for some reason

- Observations in WC
Not sure if this is a toolbar rendering problem or a ghost button rendering problem.
Fixed ✅, was just a small problem with the story example itself.
This is an issue with the overflow-menu icon button, I opened an issue for this: #22293 |
5773076
Closes #21345
Partially addresses #13923
Adds
xssize and contextual layout tokens support to the Data table toolbar in both React and WC.Also refactors many of the table-toolbar styles. The children of table-toolbar (e.g. search, menu) now inherit the size of the toolbar, instead of having the toolbar manually set the necessary styles to its children when its size changes; thus, many of these styles have been removed in favour of simply passing the toolbar's size to its children.
Changelog
New
xssizeuseTableToolbarcontext which passes the toolbar's size down to its childrennormalizeToolbarSizefunction totable.tsxs,sm, andlg. This function normalizes the data-table'sxlandmdsizes tolg.Changed
Removed
xssize tosmin the Toolbar, since Toolbar now supportsxs.sizestyle selectors in favour of using contextual layout tokensxssize #21721Testing / Reviewing
DataTable/Batch Actions,DataTable/Toolbaretc. in React and WCxssize should render as expectedmdandxlsizes should render the Toolbar with itslgsizePR Checklist
As the author of this PR, before marking ready for review, confirm you:
[ ] Updated documentation and storybook examples[ ] Wrote passing tests that cover this change