Skip to content

Commit 6063015

Browse files
Add text wrapping utilities in Sass utilities API in the docs
1 parent b8edba4 commit 6063015

2 files changed

Lines changed: 5 additions & 15 deletions

File tree

scss/_utilities.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,11 +689,13 @@ $utilities: map.merge(
689689
values: lowercase uppercase capitalize
690690
),
691691
// scss-docs-end utils-text-transform
692+
// scss-docs-start utils-text-wrap
692693
"text-wrap": (
693694
property: text-wrap,
694695
class: text,
695696
values: wrap nowrap balance pretty,
696697
),
698+
// scss-docs-end utils-text-wrap
697699
// scss-docs-start utils-text-break
698700
"word-wrap": (
699701
property: word-wrap word-break,

site/src/content/docs/utilities/text-wrapping.mdx

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,6 @@ Prevent long strings of text from breaking your components' layout by using `.te
4040

4141
Text wrapping utilities are declared in our utilities API in `scss/_utilities.scss`. [Learn how to use the utilities API.]([[docsref:/utilities/api#using-the-api]])
4242

43-
```scss
44-
"white-space": (
45-
property: white-space,
46-
class: text,
47-
values: (
48-
wrap: normal,
49-
nowrap: nowrap,
50-
)
51-
),
52-
"word-wrap": (
53-
property: word-wrap word-break,
54-
class: text,
55-
values: (break: break-word),
56-
),
57-
```
43+
<ScssDocs name="utils-text-wrap" file="scss/_utilities.scss" />
44+
45+
<ScssDocs name="utils-text-break" file="scss/_utilities.scss" />

0 commit comments

Comments
 (0)