Skip to content

Commit

Permalink
docs(item): clarify usage for text wrapping (#3314)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Dec 11, 2023
1 parent 1dbb624 commit 5f3034a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/api/item.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Items are elements that can contain text, icons, avatars, images, inputs, and an

## Basic Usage

Items left align text and add an ellipsis when the text is wider than the item. We can modify this behavior using the CSS Utilities provided by Ionic Framework, such as using `.ion-text-wrap` in the below example. See the [CSS Utilities Documentation](/docs/layout/css-utilities) for more classes that can be added to an item to transform the text.
Items left align text and wrap when the text is wider than the item. We can modify this behavior using the CSS Utilities provided by Ionic Framework, such as using `.ion-text-nowrap` in the below example. See the [CSS Utilities Documentation](/docs/layout/css-utilities) for more classes that can be added to an item to transform the text.

import Basic from '@site/static/usage/v7/item/basic/index.md';

Expand Down
6 changes: 3 additions & 3 deletions static/usage/v7/item/basic/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

<ion-item>
<ion-label>
Multi-line text that should ellipsis when it is too long to fit on one line. Lorem ipsum dolor sit amet, consectetur
Multi-line text that should wrap when it is too long to fit on one line. Lorem ipsum dolor sit amet, consectetur
adipiscing elit.
</ion-label>
</ion-item>

<ion-item>
<ion-label class="ion-text-wrap">
Multi-line text that should wrap when it is too long to fit on one line. Lorem ipsum dolor sit amet, consectetur
<ion-label class="ion-text-nowrap">
Multi-line text that should ellipsis when it is too long to fit on one line. Lorem ipsum dolor sit amet, consectetur
adipiscing elit.
</ion-label>
</ion-item>
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v7/item/basic/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@

<ion-item>
<ion-label>
Multi-line text that should ellipsis when it is too long to fit on one line. Lorem ipsum dolor sit amet,
Multi-line text that should wrap when it is too long to fit on one line. Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
</ion-label>
</ion-item>

<ion-item>
<ion-label class="ion-text-wrap">
Multi-line text that should wrap when it is too long to fit on one line. Lorem ipsum dolor sit amet,
<ion-label class="ion-text-nowrap">
Multi-line text that should ellipsis when it is too long to fit on one line. Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
</ion-label>
</ion-item>
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v7/item/basic/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

<ion-item>
<ion-label>
Multi-line text that should ellipsis when it is too long to fit on one line. Lorem ipsum dolor sit amet, consectetur
Multi-line text that should wrap when it is too long to fit on one line. Lorem ipsum dolor sit amet, consectetur
adipiscing elit.
</ion-label>
</ion-item>

<ion-item>
<ion-label class="ion-text-wrap">
Multi-line text that should wrap when it is too long to fit on one line. Lorem ipsum dolor sit amet, consectetur
<ion-label class="ion-text-nowrap">
Multi-line text that should ellipsis when it is too long to fit on one line. Lorem ipsum dolor sit amet, consectetur
adipiscing elit.
</ion-label>
</ion-item>
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v7/item/basic/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ function Example() {

<IonItem>
<IonLabel>
Multi-line text that should ellipsis when it is too long to fit on one line. Lorem ipsum dolor sit amet,
Multi-line text that should wrap when it is too long to fit on one line. Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
</IonLabel>
</IonItem>

<IonItem>
<IonLabel class="ion-text-wrap">
Multi-line text that should wrap when it is too long to fit on one line. Lorem ipsum dolor sit amet,
<IonLabel class="ion-text-nowrap">
Multi-line text that should ellipsis when it is too long to fit on one line. Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
</IonLabel>
</IonItem>
Expand Down
10 changes: 5 additions & 5 deletions static/usage/v7/item/basic/vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

<ion-item>
<ion-label>
Multi-line text that should ellipsis when it is too long to fit on one line. Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
Multi-line text that should wrap when it is too long to fit on one line. Lorem ipsum dolor sit amet, consectetur
adipiscing elit.
</ion-label>
</ion-item>

<ion-item>
<ion-label class="ion-text-wrap">
Multi-line text that should wrap when it is too long to fit on one line. Lorem ipsum dolor sit amet, consectetur
adipiscing elit.
<ion-label class="ion-text-nowrap">
Multi-line text that should ellipsis when it is too long to fit on one line. Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
</ion-label>
</ion-item>

Expand Down

1 comment on commit 5f3034a

@vercel
Copy link

@vercel vercel bot commented on 5f3034a Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ionic-docs – ./

ionic-docs-ionic1.vercel.app
ionic-docs-git-main-ionic1.vercel.app
ionic-docs-gqykycf8t.vercel.app

Please sign in to comment.