diff --git a/.changeset/new-laws-mix.md b/.changeset/new-laws-mix.md new file mode 100644 index 0000000000..729f764a77 --- /dev/null +++ b/.changeset/new-laws-mix.md @@ -0,0 +1,7 @@ +--- +"@twilio-paste/data-grid": patch +"@twilio-paste/table": patch +"@twilio-paste/core": patch +--- + +[Table, DataGrid] Fix regression that broke `noWrap` prop on Table and DataGrids. diff --git a/packages/paste-core/components/data-grid/src/table/Td.tsx b/packages/paste-core/components/data-grid/src/table/Td.tsx index 4702eacb17..5e6875cd8e 100644 --- a/packages/paste-core/components/data-grid/src/table/Td.tsx +++ b/packages/paste-core/components/data-grid/src/table/Td.tsx @@ -7,7 +7,7 @@ export interface TdProps extends TableTdProps { } export const Td = React.forwardRef( - ({ textAlign = "left", whiteSpace = "normal", element = "DATA_GRID_TD", ...props }, ref) => { + ({ textAlign = "left", whiteSpace, element = "DATA_GRID_TD", ...props }, ref) => { return ( ( - ({ width, textAlign = "left", whiteSpace = "normal", element = "DATA_GRID_TH", ...props }, ref) => { + ({ width, textAlign = "left", whiteSpace, element = "DATA_GRID_TH", ...props }, ref) => { return ( ( - ({ element = "TD", textAlign = "left", whiteSpace = "normal", ...props }, ref) => { + ({ element = "TD", textAlign = "left", whiteSpace, ...props }, ref) => { return ( ( - ({ element = "TH", textAlign = "left", whiteSpace = "normal", width, ...props }, ref) => { + ({ element = "TH", textAlign = "left", whiteSpace, width, ...props }, ref) => { return (