Skip to content

Commit

Permalink
table-layout now set to fixed (#398)
Browse files Browse the repository at this point in the history
This removes some finicky code that tried to make tables widths a bit prettier, but came with some bad drawbacks.
  • Loading branch information
snide authored Feb 14, 2018
1 parent 839e35c commit aff62f7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 0 additions & 4 deletions src/components/table/_index.scss
Original file line number Diff line number Diff line change
@@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions src/components/table/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@include euiFontSizeS;

width: 100%;
table-layout: fixed;
border: none;
border-collapse: collapse;
background-color: $euiColorEmptyShade;
Expand Down

0 comments on commit aff62f7

Please sign in to comment.