From a5dbb39be2dba8f3476c2f1ed8693a003fbc0841 Mon Sep 17 00:00:00 2001
From: Caroline Horn <549577+cchaos@users.noreply.github.com>
Date: Fri, 7 Dec 2018 15:26:13 -0500
Subject: [PATCH] Fix word-break in tables on most browsers (#1349)
---
CHANGELOG.md | 5 ++
src-docs/src/views/tables/basic/basic.js | 1 +
.../src/views/tables/basic/basic_section.js | 4 +
.../src/views/tables/custom/custom_section.js | 2 +-
.../views/utility_classes/utility_classes.js | 76 ++++++++++++++++---
src/components/table/_table.scss | 20 ++---
src/components/table/table_row_cell.js | 4 +
src/global_styling/mixins/_typography.scss | 9 +++
src/global_styling/utility/_utility.scss | 7 ++
9 files changed, 101 insertions(+), 27 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 618c405c1a4..c8a94b078a7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,11 @@
- Altered functionality of `truncate` on `EuiBreadcrumbs` and added `truncate` ability on breadcrumb item ([#1346](https://github.com/elastic/eui/pull/1346))
- Altered `EuiHeader`'s location of `EuiHeaderBreadcrumbs` based on the new `truncate` ability ([#1346](https://github.com/elastic/eui/pull/1346))
- Added support for `href` and `target` props in `EuiBasicTable` actions ([#1347](https://github.com/elastic/eui/pull/1347))
+- Added `.eui-textBreakWord` CSS utility class ([#1349](https://github.com/elastic/eui/pull/1349))
+
+**Bug fixes**
+
+- Fixed word-breaks in table cells for Firefox ([#1349](https://github.com/elastic/eui/pull/1349))
**Bug fixes**
diff --git a/src-docs/src/views/tables/basic/basic.js b/src-docs/src/views/tables/basic/basic.js
index dbe7c930fd0..93d020ed486 100644
--- a/src-docs/src/views/tables/basic/basic.js
+++ b/src-docs/src/views/tables/basic/basic.js
@@ -97,6 +97,7 @@ export const Table = () => {
return {
className: 'customCellClass',
'data-test-subj': `cell-${id}-${field}`,
+ textOnly: true,
};
};
diff --git a/src-docs/src/views/tables/basic/basic_section.js b/src-docs/src/views/tables/basic/basic_section.js
index 4221067205b..b0027047478 100644
--- a/src-docs/src/views/tables/basic/basic_section.js
+++ b/src-docs/src/views/tables/basic/basic_section.js
@@ -61,6 +61,10 @@ export const section = {
returns the React node that should be displayed as the content of the cell. This can be as simple as
formatting values (e.g. the "Date of Birth" column) to utilizing more complex React components
(e.g. the "Online", "Github" and "Nationality" columns as seen below).
+
+ Note: the basic table will treat any cells that use a
+ We recommend using