From 40ea7037668f4df77082a75240aa8f8fdeab5f4b Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Tue, 13 Feb 2018 08:58:36 -0800 Subject: [PATCH 1/2] table fixed for less problems --- src/components/table/_index.scss | 4 ---- src/components/table/_table.scss | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/table/_index.scss b/src/components/table/_index.scss index 94cb0820040..e2be7c70978 100644 --- a/src/components/table/_index.scss +++ b/src/components/table/_index.scss @@ -1,8 +1,4 @@ -/** - * 1. Prevent cells from expanding based on content size. This substitutes for table-layout: fixed. - */ @mixin euiTableCell { - max-width: 20px; /* 1 */ vertical-align: middle; } diff --git a/src/components/table/_table.scss b/src/components/table/_table.scss index 7975be9c18e..db6ba654174 100644 --- a/src/components/table/_table.scss +++ b/src/components/table/_table.scss @@ -6,6 +6,7 @@ @include euiFontSizeS; width: 100%; + table-layout: fixed; border: none; border-collapse: collapse; background-color: $euiColorEmptyShade; From 9e2fe5223994a9715dda0e2ba9e20bd4c61cdbbd Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Wed, 14 Feb 2018 14:46:27 -0800 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3fdcbd5576..7be1df291d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ **Bug fixes** +- Tables now default to `table-layout: fixed` to avoid some collapsing cell problems. [#398](https://github.com/elastic/eui/pull/398) - Wrap long lines of text within the body of `EuiToast` instead of letting text overflow ([#392](https://github.com/elastic/eui/pull/392)) - Fix dark theme coloring of Substeps ([#396](https://github.com/elastic/eui/pull/396)) - Reorder selectors to fix fixed progress bar in Firefox ([#404](https://github.com/elastic/eui/pull/404))