Skip to content

Commit

Permalink
chore: lint content (#3020)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi authored Jul 6, 2023
1 parent b2b7df1 commit 63d96f3
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 58 deletions.
8 changes: 4 additions & 4 deletions docs/vue/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ This guide discusses how to use the Ionic Framework Lifecycle events in an Ionic

Ionic Framework provides a few lifecycle methods that you can use in your apps:

| Event Name | Description |
| Event Name | Description |
| ------------------ | ------------------------------------------------------------------ |
| `ionViewWillEnter` | Fired when the component routing to is about to animate into view. |
| `ionViewDidEnter` | Fired when the component routing to has _finished_ animating. |
| `ionViewWillLeave` | Fired when the component routing _from_ is about to animate. |
| `ionViewDidLeave` | Fired when the component routing _from_ has _finished_ animating. |
| `ionViewDidEnter` | Fired when the component routing to has _finished_ animating. |
| `ionViewWillLeave` | Fired when the component routing _from_ is about to animate. |
| `ionViewDidLeave` | Fired when the component routing _from_ has _finished_ animating. |

These lifecycles are only called on components directly mapped by a router. This means if `/pageOne` maps to `PageOneComponent`, then Ionic lifecycles will be called on `PageOneComponent` but will not be called on any child components that `PageOneComponent` may render.

Expand Down
6 changes: 1 addition & 5 deletions static/usage/v7/input/label-slot/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

<Playground
version="7"
code={{ javascript, react, vue, angular }}
src="usage/v7/input/label-slot/demo.html"
/>
<Playground version="7" code={{ javascript, react, vue, angular }} src="usage/v7/input/label-slot/demo.html" />
4 changes: 3 additions & 1 deletion static/usage/v7/input/label-slot/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ function Example() {
<IonList>
<IonItem>
<IonInput labelPlacement="floating" value="[email protected]">
<div slot="label">Email <IonText color="danger">(Required)</IonText></div>
<div slot="label">
Email <IonText color="danger">(Required)</IonText>
</div>
</IonInput>
</IonItem>
</IonList>
Expand Down
6 changes: 1 addition & 5 deletions static/usage/v7/input/no-visible-label/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

<Playground
version="7"
code={{ javascript, react, vue, angular }}
src="usage/v7/input/no-visible-label/demo.html"
/>
<Playground version="7" code={{ javascript, react, vue, angular }} src="usage/v7/input/no-visible-label/demo.html" />
6 changes: 3 additions & 3 deletions static/usage/v7/list/inset/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import vue from './vue.md';
import angular from './angular.md';

<Playground
version="7"
code={{ javascript, react, vue, angular }}
src="usage/v7/list/inset/demo.html"
version="7"
code={{ javascript, react, vue, angular }}
src="usage/v7/list/inset/demo.html"
size="350px"
includeIonContent={false}
/>
2 changes: 1 addition & 1 deletion static/usage/v7/range/basic/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

<Playground version="7" code={{ javascript, react, vue, angular }} src="usage/v7/range/basic/demo.html" />
<Playground version="7" code={{ javascript, react, vue, angular }} src="usage/v7/range/basic/demo.html" />
4 changes: 1 addition & 3 deletions static/usage/v7/range/label-slot/angular.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
```html
<ion-range>
<div slot="label">
Label with <ion-text color="primary">custom HTML</ion-text>
</div>
<div slot="label">Label with <ion-text color="primary">custom HTML</ion-text></div>
</ion-range>
```
4 changes: 1 addition & 3 deletions static/usage/v7/range/label-slot/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
<ion-content>
<div class="container">
<ion-range>
<div slot="label">
Label with <ion-text color="primary">custom HTML</ion-text>
</div>
<div slot="label">Label with <ion-text color="primary">custom HTML</ion-text></div>
</ion-range>
</div>
</ion-content>
Expand Down
4 changes: 1 addition & 3 deletions static/usage/v7/range/label-slot/javascript.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
```html
<ion-range>
<div slot="label">
Label with <ion-text color="primary">custom HTML</ion-text>
</div>
<div slot="label">Label with <ion-text color="primary">custom HTML</ion-text></div>
</ion-range>
```
4 changes: 1 addition & 3 deletions static/usage/v7/range/label-slot/vue.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
```html
<template>
<ion-range>
<div slot="label">
Label with <ion-text color="primary">custom HTML</ion-text>
</div>
<div slot="label">Label with <ion-text color="primary">custom HTML</ion-text></div>
</ion-range>
</template>

Expand Down
8 changes: 4 additions & 4 deletions static/usage/v7/range/labels/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
<div class="container">
<div class="wrapper">
<ion-range label-placement="start" label="Label at the Start"></ion-range>

<br />

<ion-range label-placement="end" label="Label at the End"></ion-range>

<br />

<ion-range label-placement="fixed" label="Fixed Width Label"></ion-range>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion static/usage/v7/select/label-slot/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ function Example() {
<IonList>
<IonItem>
<IonSelect placeholder="Select a Fruit">
<div slot="label">Favorite Fruit <IonText color="danger">(Required)</IonText></div>
<div slot="label">
Favorite Fruit <IonText color="danger">(Required)</IonText>
</div>
<IonSelectOption value="apple">Apple</IonSelectOption>
<IonSelectOption value="banana">Banana</IonSelectOption>
<IonSelectOption value="orange">Orange</IonSelectOption>
Expand Down
12 changes: 6 additions & 6 deletions static/usage/v7/select/label-slot/vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<template>
<ion-list>
<ion-item>
<ion-select placeholder="Select a Fruit">
<div slot="label">Favorite Fruit <ion-text color="danger">(Required)</ion-text></div>
<ion-select-option value="apple">Apple</ion-select-option>
<ion-select-option value="banana">Banana</ion-select-option>
<ion-select-option value="orange">Orange</ion-select-option>
</ion-select>
<ion-select placeholder="Select a Fruit">
<div slot="label">Favorite Fruit <ion-text color="danger">(Required)</ion-text></div>
<ion-select-option value="apple">Apple</ion-select-option>
<ion-select-option value="banana">Banana</ion-select-option>
<ion-select-option value="orange">Orange</ion-select-option>
</ion-select>
</ion-item>
</ion-list>
</template>
Expand Down
10 changes: 5 additions & 5 deletions static/usage/v7/select/no-visible-label/vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<template>
<ion-list>
<ion-item>
<ion-select aria-label="Favorite Fruit" value="apple">
<ion-select-option value="apple">Apple</ion-select-option>
<ion-select-option value="banana">Banana</ion-select-option>
<ion-select-option value="orange">Orange</ion-select-option>
</ion-select>
<ion-select aria-label="Favorite Fruit" value="apple">
<ion-select-option value="apple">Apple</ion-select-option>
<ion-select-option value="banana">Banana</ion-select-option>
<ion-select-option value="orange">Orange</ion-select-option>
</ion-select>
</ion-item>
</ion-list>
</template>
Expand Down
6 changes: 1 addition & 5 deletions static/usage/v7/textarea/label-slot/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

<Playground
version="7"
code={{ javascript, react, vue, angular }}
src="usage/v7/textarea/label-slot/demo.html"
/>
<Playground version="7" code={{ javascript, react, vue, angular }} src="usage/v7/textarea/label-slot/demo.html" />
4 changes: 3 additions & 1 deletion static/usage/v7/textarea/label-slot/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ function Example() {
<IonList>
<IonItem>
<IonTextarea labelPlacement="floating" value="Lorem Ipsum">
<div slot="label">Comments <IonText color="danger">(Required)</IonText></div>
<div slot="label">
Comments <IonText color="danger">(Required)</IonText>
</div>
</IonTextarea>
</IonItem>
</IonList>
Expand Down
6 changes: 1 addition & 5 deletions static/usage/v7/textarea/no-visible-label/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

<Playground
version="7"
code={{ javascript, react, vue, angular }}
src="usage/v7/textarea/no-visible-label/demo.html"
/>
<Playground version="7" code={{ javascript, react, vue, angular }} src="usage/v7/textarea/no-visible-label/demo.html" />

1 comment on commit 63d96f3

@vercel
Copy link

@vercel vercel bot commented on 63d96f3 Jul 6, 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-gqykycf8t.vercel.app
ionic-docs-git-main-ionic1.vercel.app
ionic-docs-ionic1.vercel.app

Please sign in to comment.