From 6af70d141a74ab47be6b6b244d7589f56482c669 Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Thu, 28 Mar 2024 14:55:02 -0700 Subject: [PATCH] Remove `euiTable--responsive` --- .../basic_table/__snapshots__/basic_table.test.tsx.snap | 4 ++-- .../basic_table/__snapshots__/in_memory_table.test.tsx.snap | 5 ++--- src/components/table/__snapshots__/table.test.tsx.snap | 2 +- src/components/table/table.tsx | 4 +--- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/components/basic_table/__snapshots__/basic_table.test.tsx.snap b/src/components/basic_table/__snapshots__/basic_table.test.tsx.snap index f7c7e222ae1..766805808ab 100644 --- a/src/components/basic_table/__snapshots__/basic_table.test.tsx.snap +++ b/src/components/basic_table/__snapshots__/basic_table.test.tsx.snap @@ -7,7 +7,7 @@ exports[`EuiBasicTable renders (bare-bones) 1`] = ` data-test-subj="test subject string" > @@ -119,7 +119,7 @@ exports[`EuiBasicTable renders (kitchen sink) with pagination, selection, sortin class="euiBasicTable" >
diff --git a/src/components/basic_table/__snapshots__/in_memory_table.test.tsx.snap b/src/components/basic_table/__snapshots__/in_memory_table.test.tsx.snap index 6bf50f9dba8..c556f04a281 100644 --- a/src/components/basic_table/__snapshots__/in_memory_table.test.tsx.snap +++ b/src/components/basic_table/__snapshots__/in_memory_table.test.tsx.snap @@ -155,7 +155,7 @@ exports[`EuiInMemoryTable empty array 1`] = ` data-test-subj="test subject string" >
@@ -236,7 +236,6 @@ exports[`EuiInMemoryTable with executeQueryOptions 1`] = ` /> } onChange={[Function]} - responsive={true} tableLayout="fixed" /> `; @@ -248,7 +247,7 @@ exports[`EuiInMemoryTable with items 1`] = ` data-test-subj="test subject string" >
diff --git a/src/components/table/__snapshots__/table.test.tsx.snap b/src/components/table/__snapshots__/table.test.tsx.snap index 8fa9470b448..a0ec1ef1d60 100644 --- a/src/components/table/__snapshots__/table.test.tsx.snap +++ b/src/components/table/__snapshots__/table.test.tsx.snap @@ -3,7 +3,7 @@ exports[`EuiTable renders 1`] = `
diff --git a/src/components/table/table.tsx b/src/components/table/table.tsx index 7ccb07479ab..4289adbee17 100644 --- a/src/components/table/table.tsx +++ b/src/components/table/table.tsx @@ -48,9 +48,7 @@ export const EuiTable: FunctionComponent = ({ }) => { const isResponsive = useIsEuiTableResponsive(responsiveBreakpoint); - const classes = classNames('euiTable', className, { - 'euiTable--responsive': responsive, - }); + const classes = classNames('euiTable', className); const styles = useEuiMemoizedStyles(euiTableStyles); const cssStyles = [