-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix text wrapping utilities #2157
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0fbd26d
Fix word breaking CSS utilites properties
fe0e0e6
Set `.eui-textOverflowWrap` to be deprecated
0ff462f
Fix up guidelines and change `. euiYScrollWithShadows` to `.eui-yScro…
25c411f
cl
d2c4c6c
Merge branch 'master' into fix-text-wrapping-utilities
cchaos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,23 @@ | |
.eui-textInheritColor {color: inherit !important;} | ||
|
||
.eui-textBreakWord { | ||
word-break: break-all !important; // Fallback for FF and IE | ||
word-break: break-word !important; | ||
// https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for including stuff like this. |
||
overflow-wrap: break-word !important; // makes sure the long string will wrap and not bust out of the container | ||
word-wrap: break-word !important; // spec says, they are literally just alternate names for each other but some browsers support one and not the other | ||
word-break: break-word; // IE doesn't understand but that's ok | ||
} | ||
.eui-textBreakAll {word-break: break-all !important;} | ||
.eui-textBreakNormal {word-break: normal !important;} | ||
|
||
.eui-textBreakAll { | ||
word-break: break-all !important; | ||
} | ||
|
||
.eui-textBreakNormal { | ||
overflow-wrap: normal !important; | ||
word-wrap: normal !important; | ||
word-break: normal !important; | ||
} | ||
|
||
// TODO: 7/23 DEPRECATE in favor of .eui-textBreakWord now that it's working as intended | ||
.eui-textOverflowWrap { | ||
@include internetExplorerOnly { | ||
word-break: break-all !important; | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it's any better or worse, and I know this was already in there, but anytime we've needed docs specific styling I've done it in the Sass over in this file.
https://github.com/elastic/eui/blob/master/src-docs/src/components/guide_components.scss
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah... this was already in the file, I just noticed it was being repeated a lot, so I just moved it to a var.