[Bug]: incorrect prop types provided by getToolbarProps for v11 #11082
Labels
component: data-table
package: @carbon/react
@carbon/react
type: bug 🐛
version: 11
Issues pertaining to Carbon v11
Package
@carbon/react
Browser
Chrome
Package version
0.17.0
React version
17.0.2
Description
The render function
getToolbarProps()
fromDataTable
is providing incorrect prop types for v11. The function is defined athttps://github.com/carbon-design-system/carbon/blob/main/packages/react/src/components/DataTable/DataTable.js#L385 and is returning a size of
small
but for v11 the prop is expectingsm
https://github.com/carbon-design-system/carbon/blob/main/packages/react/src/components/DataTable/TableToolbar.js#L43CodeSandbox example
n/a
Steps to reproduce
Use a datatable with a toolbar
Code of Conduct
The text was updated successfully, but these errors were encountered: