-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add word-break utility class * Rename style guide to make link to page correct
- Loading branch information
1 parent
017476e
commit c9ce0d0
Showing
2 changed files
with
25 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
@import 'text-transform'; | ||
@import 'truncate'; | ||
@import 'vertical-align'; | ||
@import 'word-break' |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* stylelint-disable declaration-no-important */ | ||
@import '@cmsgov/design-system-support/src/settings/index'; | ||
|
||
/* | ||
Word Break | ||
Use the word break utility (`ds-u-word-break`) to prevent long strings of text from breaking layouts. | ||
Markup: | ||
<section class="ds-l-container preview__grid"> | ||
<div class="ds-l-row"> | ||
<div class="ds-l-col--3 ds-u-word-break"> | ||
<span class="ds-u-font-weight--bold">A long string:</span> Supercalifragilisticexpialidocious | ||
</div> | ||
</div> | ||
</section> | ||
Style guide: utilities.word-break | ||
*/ | ||
.ds-u-word-break { | ||
overflow-wrap: break-word; | ||
// IE fallback | ||
word-wrap: break-word; | ||
} |