Skip to content

Commit

Permalink
fix(table,datagrid): noWrap prop regression
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSisb committed Feb 5, 2024
1 parent 33116f9 commit cf2271d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .changeset/new-laws-mix.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion packages/paste-core/components/data-grid/src/table/Td.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface TdProps extends TableTdProps {
}

export const Td = React.forwardRef<HTMLTableCellElement, TdProps>(
({ textAlign = "left", whiteSpace = "normal", element = "DATA_GRID_TD", ...props }, ref) => {
({ textAlign = "left", whiteSpace, element = "DATA_GRID_TD", ...props }, ref) => {
return (
<Box
{...safelySpreadBoxProps(props)}
Expand Down
2 changes: 1 addition & 1 deletion packages/paste-core/components/data-grid/src/table/Th.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface ThProps extends TableThProps {
}

export const Th = React.forwardRef<HTMLTableCellElement, ThProps>(
({ width, textAlign = "left", whiteSpace = "normal", element = "DATA_GRID_TH", ...props }, ref) => {
({ width, textAlign = "left", whiteSpace, element = "DATA_GRID_TH", ...props }, ref) => {
return (
<Box
{...safelySpreadBoxProps(props)}
Expand Down
2 changes: 1 addition & 1 deletion packages/paste-core/components/table/src/Td.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as React from "react";
import type { TdProps } from "./types";

const Td = React.forwardRef<HTMLTableCellElement, TdProps>(
({ element = "TD", textAlign = "left", whiteSpace = "normal", ...props }, ref) => {
({ element = "TD", textAlign = "left", whiteSpace, ...props }, ref) => {
return (
<Box
{...safelySpreadBoxProps(props)}
Expand Down
2 changes: 1 addition & 1 deletion packages/paste-core/components/table/src/Th.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as React from "react";
import type { ThProps } from "./types";

const Th = React.forwardRef<HTMLTableCellElement, ThProps>(
({ element = "TH", textAlign = "left", whiteSpace = "normal", width, ...props }, ref) => {
({ element = "TH", textAlign = "left", whiteSpace, width, ...props }, ref) => {
return (
<Box
{...safelySpreadBoxProps(props)}
Expand Down

0 comments on commit cf2271d

Please sign in to comment.