diff --git a/src/components/datagrid/__snapshots__/data_grid.test.tsx.snap b/src/components/datagrid/__snapshots__/data_grid.test.tsx.snap
index b6dc51f0c294..cf9665dca56a 100644
--- a/src/components/datagrid/__snapshots__/data_grid.test.tsx.snap
+++ b/src/components/datagrid/__snapshots__/data_grid.test.tsx.snap
@@ -689,7 +689,7 @@ exports[`EuiDataGrid rendering renders additional toolbar controls 1`] = `
-
- 0, A
-
-
- -
- A, column 1, row 1
-
+ 0, A
+
+ -
+ A, column 1, row 1
+
-
- 0, B
-
-
- -
- B, column 2, row 1
-
+ 0, B
+
+ -
+ B, column 2, row 1
+
-
- 1, A
-
-
- -
- A, column 1, row 2
-
+ 1, A
+
+ -
+ A, column 1, row 2
+
-
- 1, B
-
-
- -
- B, column 2, row 2
-
+ 1, B
+
+ -
+ B, column 2, row 2
+
-
- 2, A
-
-
- -
- A, column 1, row 3
-
+ 2, A
+
+ -
+ A, column 1, row 3
+
-
- 2, B
-
-
- -
- B, column 2, row 3
-
+ 2, B
+
+ -
+ B, column 2, row 3
+
@@ -1164,7 +1140,7 @@ exports[`EuiDataGrid rendering renders control columns 1`] = `
-
- 0
-
-
- -
- leading, column 1, row 1
-
+ 0
+
+ -
+ leading, column 1, row 1
+
-
- 0, A
-
-
- -
- A, column 2, row 1
-
+ 0, A
+
+ -
+ A, column 2, row 1
+
-
- 0, B
-
-
- -
- B, column 3, row 1
-
+ 0, B
+
+ -
+ B, column 3, row 1
+
-
- 0
-
-
- -
- trailing, column 4, row 1
-
+ 0
+
+ -
+ trailing, column 4, row 1
+
-
- 1
-
-
- -
- leading, column 1, row 2
-
+ 1
+
+ -
+ leading, column 1, row 2
+
-
- 1, A
-
-
- -
- A, column 2, row 2
-
+ 1, A
+
+ -
+ A, column 2, row 2
+
-
- 1, B
-
-
- -
- B, column 3, row 2
-
+ 1, B
+
+ -
+ B, column 3, row 2
+
-
- 1
-
-
- -
- trailing, column 4, row 2
-
+ 1
+
+ -
+ trailing, column 4, row 2
+
-
- 2
-
-
- -
- leading, column 1, row 3
-
+ 2
+
+ -
+ leading, column 1, row 3
+
-
- 2, A
-
-
- -
- A, column 2, row 3
-
+ 2, A
+
+ -
+ A, column 2, row 3
+
-
- 2, B
-
-
- -
- B, column 3, row 3
-
+ 2, B
+
+ -
+ B, column 3, row 3
+
-
- 2
-
-
- -
- trailing, column 4, row 3
-
+ 2
+
+ -
+ trailing, column 4, row 3
+
-
- 0, A
-
-
- -
- A, column 1, row 1
-
+ 0, A
+
+ -
+ A, column 1, row 1
+
-
- 0, B
-
-
- -
- B, column 2, row 1
-
+ 0, B
+
+ -
+ B, column 2, row 1
+
-
- 1, A
-
-
- -
- A, column 1, row 2
-
+ 1, A
+
+ -
+ A, column 1, row 2
+
-
- 1, B
-
-
- -
- B, column 2, row 2
-
+ 1, B
+
+ -
+ B, column 2, row 2
+
-
- 2, A
-
-
- -
- A, column 1, row 3
-
+ 2, A
+
+ -
+ A, column 1, row 3
+
-
- 2, B
-
-
- -
- B, column 2, row 3
-
+ 2, B
+
+ -
+ B, column 2, row 3
+
@@ -2298,7 +2202,7 @@ exports[`EuiDataGrid rendering renders with common and div attributes 1`] = `
-
- 0, A
-
-
- -
- A, column 1, row 1
-
+ 0, A
+
+ -
+ A, column 1, row 1
+
-
- 0, B
-
-
- -
- B, column 2, row 1
-
+ 0, B
+
+ -
+ B, column 2, row 1
+
-
- 1, A
-
-
- -
- A, column 1, row 2
-
+ 1, A
+
+ -
+ A, column 1, row 2
+
-
- 1, B
-
-
- -
- B, column 2, row 2
-
+ 1, B
+
+ -
+ B, column 2, row 2
+
-
- 2, A
-
-
- -
- A, column 1, row 3
-
+ 2, A
+
+ -
+ A, column 1, row 3
+
-
- 2, B
-
-
- -
- B, column 2, row 3
-
+ 2, B
+
+ -
+ B, column 2, row 3
+
diff --git a/src/components/datagrid/body/__snapshots__/data_grid_body_custom.test.tsx.snap b/src/components/datagrid/body/__snapshots__/data_grid_body_custom.test.tsx.snap
index d51f94ba5d22..d17d29bfa94a 100644
--- a/src/components/datagrid/body/__snapshots__/data_grid_body_custom.test.tsx.snap
+++ b/src/components/datagrid/body/__snapshots__/data_grid_body_custom.test.tsx.snap
@@ -115,7 +115,7 @@ exports[`EuiDataGridBodyCustomRender treats \`renderCustomGridBody\` as a render
>
-
- hello
-
-
- -
- columnA, column 1, row 1
-
+ hello
+
+ -
+ columnA, column 1, row 1
+
-
- world
-
-
- -
- columnB, column 2, row 1
-
+ world
+
+ -
+ columnB, column 2, row 1
+
-
- lorem
-
-
- -
- columnA, column 1, row 2
-
+ lorem
+
+ -
+ columnA, column 1, row 2
+
-
- ipsum
-
-
- -
- columnB, column 2, row 2
-
+ ipsum
+
+ -
+ columnB, column 2, row 2
+
diff --git a/src/components/datagrid/body/__snapshots__/data_grid_body_virtualized.test.tsx.snap b/src/components/datagrid/body/__snapshots__/data_grid_body_virtualized.test.tsx.snap
index c58ccaf130d0..7452e75b2c3f 100644
--- a/src/components/datagrid/body/__snapshots__/data_grid_body_virtualized.test.tsx.snap
+++ b/src/components/datagrid/body/__snapshots__/data_grid_body_virtualized.test.tsx.snap
@@ -116,7 +116,7 @@ exports[`EuiDataGridBodyVirtualized renders 1`] = `
-
-
- cell content
-
-
-
- -
- columnA, column 1, row 1
-
+
+ cell content
+
+
+ -
+ columnA, column 1, row 1
+
-
-
- cell content
-
-
-
- -
- columnB, column 2, row 1
-
+
+ cell content
+
+
+ -
+ columnB, column 2, row 1
+
diff --git a/src/components/datagrid/body/footer/data_grid_footer_row.test.tsx b/src/components/datagrid/body/footer/data_grid_footer_row.test.tsx
index 92e93e3acea1..8eae820cf207 100644
--- a/src/components/datagrid/body/footer/data_grid_footer_row.test.tsx
+++ b/src/components/datagrid/body/footer/data_grid_footer_row.test.tsx
@@ -52,6 +52,7 @@ describe('EuiDataGridFooterRow', () => {
"popoverIsOpen": false,
"setCellPopoverProps": [Function],
"setPopoverAnchor": [Function],
+ "setPopoverAnchorPosition": [Function],
"setPopoverContent": [Function],
}
}
@@ -79,6 +80,7 @@ describe('EuiDataGridFooterRow', () => {
"popoverIsOpen": false,
"setCellPopoverProps": [Function],
"setPopoverAnchor": [Function],
+ "setPopoverAnchorPosition": [Function],
"setPopoverContent": [Function],
}
}
@@ -132,6 +134,7 @@ describe('EuiDataGridFooterRow', () => {
"popoverIsOpen": false,
"setCellPopoverProps": [Function],
"setPopoverAnchor": [Function],
+ "setPopoverAnchorPosition": [Function],
"setPopoverContent": [Function],
}
}
@@ -184,6 +187,7 @@ describe('EuiDataGridFooterRow', () => {
"popoverIsOpen": false,
"setCellPopoverProps": [Function],
"setPopoverAnchor": [Function],
+ "setPopoverAnchorPosition": [Function],
"setPopoverContent": [Function],
}
}
diff --git a/src/components/datagrid/data_grid.test.tsx b/src/components/datagrid/data_grid.test.tsx
index fac6ca20d3fc..337c1a083e64 100644
--- a/src/components/datagrid/data_grid.test.tsx
+++ b/src/components/datagrid/data_grid.test.tsx
@@ -537,7 +537,7 @@ describe('EuiDataGrid', () => {
Array [
Object {
"aria-rowindex": 1,
- "className": "euiDataGridRowCell euiDataGridRowCell--firstColumn customClass",
+ "className": "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--firstColumn customClass",
"data-gridcell-column-id": "A",
"data-gridcell-column-index": 0,
"data-gridcell-row-index": 0,
@@ -563,7 +563,7 @@ describe('EuiDataGrid', () => {
},
Object {
"aria-rowindex": 1,
- "className": "euiDataGridRowCell euiDataGridRowCell--lastColumn customClass",
+ "className": "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--lastColumn customClass",
"data-gridcell-column-id": "B",
"data-gridcell-column-index": 1,
"data-gridcell-row-index": 0,
@@ -589,7 +589,7 @@ describe('EuiDataGrid', () => {
},
Object {
"aria-rowindex": 2,
- "className": "euiDataGridRowCell euiDataGridRowCell--firstColumn customClass",
+ "className": "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--firstColumn customClass",
"data-gridcell-column-id": "A",
"data-gridcell-column-index": 0,
"data-gridcell-row-index": 1,
@@ -615,7 +615,7 @@ describe('EuiDataGrid', () => {
},
Object {
"aria-rowindex": 2,
- "className": "euiDataGridRowCell euiDataGridRowCell--lastColumn customClass",
+ "className": "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--lastColumn customClass",
"data-gridcell-column-id": "B",
"data-gridcell-column-index": 1,
"data-gridcell-row-index": 1,
@@ -778,17 +778,17 @@ describe('EuiDataGrid', () => {
expect(gridCellClassNames).toMatchInlineSnapshot(`
Array [
"euiDataGridRowCell--firstColumn",
- "euiDataGridRowCell euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignRight euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
"euiDataGridRowCell--lastColumn",
- "euiDataGridRowCell euiDataGridRowCell--customFormatName euiDataGridRowCell--lastColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--customFormatName euiDataGridRowCell--lastColumn",
"euiDataGridRowCell--firstColumn",
- "euiDataGridRowCell euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignRight euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
"euiDataGridRowCell--lastColumn",
- "euiDataGridRowCell euiDataGridRowCell--customFormatName euiDataGridRowCell--lastColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--customFormatName euiDataGridRowCell--lastColumn",
"euiDataGridRowCell--firstColumn",
- "euiDataGridRowCell euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignRight euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
"euiDataGridRowCell--lastColumn",
- "euiDataGridRowCell euiDataGridRowCell--customFormatName euiDataGridRowCell--lastColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--customFormatName euiDataGridRowCell--lastColumn",
]
`);
});
@@ -821,12 +821,12 @@ describe('EuiDataGrid', () => {
.map((x) => x.props().className);
expect(gridCellClassNames).toMatchInlineSnapshot(`
Array [
- "euiDataGridRowCell euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
- "euiDataGridRowCell euiDataGridRowCell--boolean",
- "euiDataGridRowCell euiDataGridRowCell--lastColumn",
- "euiDataGridRowCell euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
- "euiDataGridRowCell euiDataGridRowCell--boolean",
- "euiDataGridRowCell euiDataGridRowCell--lastColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--boolean",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--lastColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--boolean",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--lastColumn",
]
`);
});
@@ -853,10 +853,10 @@ describe('EuiDataGrid', () => {
.map((x) => x.props().className);
expect(gridCellClassNames).toMatchInlineSnapshot(`
Array [
- "euiDataGridRowCell euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
- "euiDataGridRowCell euiDataGridRowCell--alphanumeric euiDataGridRowCell--lastColumn",
- "euiDataGridRowCell euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
- "euiDataGridRowCell euiDataGridRowCell--alphanumeric euiDataGridRowCell--lastColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--alphanumeric euiDataGridRowCell--lastColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--alphanumeric euiDataGridRowCell--lastColumn",
]
`);
});
@@ -890,13 +890,13 @@ describe('EuiDataGrid', () => {
.map((x) => x.props().className);
expect(gridCellClassNames).toMatchInlineSnapshot(`
Array [
- "euiDataGridRowCell euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
- "euiDataGridRowCell euiDataGridRowCell--boolean",
- "euiDataGridRowCell euiDataGridRowCell--currency",
- "euiDataGridRowCell euiDataGridRowCell--datetime",
- "euiDataGridRowCell euiDataGridRowCell--datetime",
- "euiDataGridRowCell euiDataGridRowCell--datetime",
- "euiDataGridRowCell euiDataGridRowCell--datetime euiDataGridRowCell--lastColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--boolean",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--currency",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--datetime",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--datetime",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--datetime",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--datetime euiDataGridRowCell--lastColumn",
]
`);
});
@@ -939,8 +939,8 @@ describe('EuiDataGrid', () => {
.map((x) => x.props().className);
expect(gridCellClassNames).toMatchInlineSnapshot(`
Array [
- "euiDataGridRowCell euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
- "euiDataGridRowCell euiDataGridRowCell--ipaddress euiDataGridRowCell--lastColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--numeric euiDataGridRowCell--firstColumn",
+ "euiDataGridRowCell euiDataGridRowCell--alignLeft euiDataGridRowCell--ipaddress euiDataGridRowCell--lastColumn",
]
`);
});