Eui: Firefox/IE doesn't support `word-break: break-word;`

Created on 18 May 2018  路  4Comments  路  Source: elastic/eui

Relates to https://github.com/elastic/kibana/issues/19215

Firefox and IE (inc. Edge) doesn't support word-break: break-word;:
https://developer.mozilla.org/en-US/docs/Web/CSS/word-break#Browser_compatibility

This property is being used a couple of times for tables to prevent content from overflowing. Works in Chrome:

screen shot 2018-05-18 at 10 59 52 am

Doesn't work in Firefox:

screen shot 2018-05-18 at 10 59 37 am

Or IE:

field

Consider using overflow-wrap instead (called word-wrap in IE): https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap

designer bug style only

All 4 comments

Also ran into this issue with the ML anomalies table, where fields like job IDs cannot contain spaces, so long values will overflow the cells in Firefox and Edge.

Screenshot from Edge:
image

@cchaos do you have time for this one?

Yeah, I can take it.

@cchaos Reopening - fallback styles in #864 doesn't seem to have been applied to the word-break property on table cells (screenshot on IE11):

screen shot 2018-06-29 at 2 57 21 pm

Was this page helpful?
0 / 5 - 0 ratings