You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added eui-textBreakAll to a <p> tag in order to prevent a long URL from overflowing its container. This works great in Chrome, and even FF for most text strings.
However, Firefox refuses to break a long sequence of - characters, even with eui-textBreakAll set.
I discovered that adding overflow-wrap: break-word; to the eui-textBreakAll definition "fixes" this, but I'm not sure if it is the proper solution or not.
Honestly, what you probably want is .eui-textBreakWord. This better handles not breaking a word if not necessary and it uses your solution of overflow-wrap: break-word so it works in Firefox.
Honestly, what you probably want is .eui-textBreakWord. This better handles not breaking a word if not necessary and it uses your solution of overflow-wrap: break-word so it works in Firefox.
Good call, that does the trick for me! Do you know if there's a reason why eui-textBreakAll doesn't include overflow-wrap?
This came out of researching elastic/kibana#44871 / elastic/kibana#44849:
I added
eui-textBreakAll
to a<p>
tag in order to prevent a long URL from overflowing its container. This works great in Chrome, and even FF for most text strings.However, Firefox refuses to break a long sequence of
-
characters, even witheui-textBreakAll
set.I discovered that adding
overflow-wrap: break-word;
to theeui-textBreakAll
definition "fixes" this, but I'm not sure if it is the proper solution or not.Reproducer: https://codesandbox.io/s/non-ascii-characters-ycp6h
The text was updated successfully, but these errors were encountered: