Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bundlewatch.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"path": "./dist/css/bootstrap-utilities.min.css",
"maxSize": "10.75 kB"
"maxSize": "11.0 kB"
},
{
"path": "./dist/css/bootstrap.css",
Expand Down
5 changes: 5 additions & 0 deletions scss/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,11 @@ $utilities: map-merge(
nowrap: nowrap,
)
),
"text-wrap": (
property: text-wrap,
class: text,
values: balance
),
"word-wrap": (
property: word-wrap word-break,
class: text,
Expand Down
6 changes: 6 additions & 0 deletions site/src/content/docs/utilities/text.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ Change the line height with `.lh-*` utilities.
<p class="lh-base">This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.</p>
<p class="lh-lg">This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.</p>`} />

## Balanced Text

Use the `.text-balance` class to balance text.

<Example code={`<p class="text-balance">This is a long paragraph written to show how the text-balance of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.</p>`} />

## Monospace

Change a selection to our monospace font stack with `.font-monospace`.
Expand Down