Skip to content

Commit beacdbd

Browse files
docs(many): remove legacy form control syntax from v7 playgrounds (#3140)
1 parent e1fa8cb commit beacdbd

36 files changed

+81
-517
lines changed

docs/api/item.md

-11
Original file line numberDiff line numberDiff line change
@@ -236,17 +236,6 @@ import CSSProps from '@site/static/usage/v7/item/theming/css-properties/index.md
236236

237237
<CSSProps />
238238

239-
240-
### Input Highlight
241-
242-
Items containing an input will highlight the bottom border of the input with a different color when focused, valid, or invalid. By default, `md` items have a highlight with a height set to `2px` and `ios` has no highlight (technically the height is set to `0`). The height can be changed using the `--highlight-height` CSS property. To turn off the highlight, set this variable to `0`.
243-
244-
The highlight color changes based on the item state, but all of the states use Ionic colors by default. When focused, the input highlight will use the `primary` color. If the input is valid it will use the `success` color, and invalid inputs will use the `danger` color. This can be customized using the provided CSS properties.
245-
246-
import InputHighlight from '@site/static/usage/v7/item/theming/input-highlight/index.md';
247-
248-
<InputHighlight />
249-
250239
## Guidelines
251240

252241
The following guidelines will help ensure your list items are easy to understand and use.

docs/api/label.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ import EncapsulationPill from '@components/page/api/EncapsulationPill';
1717

1818
<EncapsulationPill type="scoped" />
1919

20-
Label is a wrapper element that can be used in combination with `ion-item`, `ion-input`, `ion-toggle`, and more. The position of the label inside of an item can be inline, fixed, stacked, or floating.
20+
Label is an element used primarily to add text content to [Item](./item.md) components. Label can also be used inside of form control components such as [Input](./input.md) or [Radio](./radio.md) when specifying the visible label, but it is not required.
2121

22+
The position of the label inside of an item can be inline, fixed, stacked, or floating.
2223

2324
## Basic Usage
2425

@@ -32,12 +33,6 @@ import Item from '@site/static/usage/v7/label/item/index.md';
3233

3334
<Item />
3435

35-
## Input Labels
36-
37-
import Input from '@site/static/usage/v7/label/input/index.md';
38-
39-
<Input />
40-
4136
## Theming
4237

4338
### Colors

static/usage/v7/backdrop/basic/angular.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
</ion-header>
99
<ion-content class="ion-padding">
1010
<ion-item>
11-
<ion-checkbox slot="start"></ion-checkbox>
12-
<ion-label>Checkbox</ion-label>
11+
<ion-checkbox>Checkbox</ion-checkbox>
1312
</ion-item>
1413
<ion-button expand="block">Button</ion-button>
1514
</ion-content>

static/usage/v7/backdrop/basic/demo.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
</ion-header>
2222
<ion-content class="ion-padding">
2323
<ion-item>
24-
<ion-checkbox slot="start"></ion-checkbox>
25-
<ion-label>Checkbox</ion-label>
24+
<ion-checkbox>Checkbox</ion-checkbox>
2625
</ion-item>
2726
<ion-button expand="block">Button</ion-button>
2827
</ion-content>

static/usage/v7/backdrop/basic/javascript.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
</ion-header>
99
<ion-content class="ion-padding">
1010
<ion-item>
11-
<ion-checkbox slot="start"></ion-checkbox>
12-
<ion-label>Checkbox</ion-label>
11+
<ion-checkbox>Checkbox</ion-checkbox>
1312
</ion-item>
1413
<ion-button expand="block">Button</ion-button>
1514
</ion-content>

static/usage/v7/backdrop/basic/react.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
IonContent,
99
IonItem,
1010
IonCheckbox,
11-
IonLabel,
1211
IonButton,
1312
} from '@ionic/react';
1413

@@ -24,8 +23,7 @@ function Example() {
2423
</IonHeader>
2524
<IonContent className="ion-padding">
2625
<IonItem>
27-
<IonCheckbox slot="start"></IonCheckbox>
28-
<IonLabel>Checkbox</IonLabel>
26+
<IonCheckbox>Checkbox</IonCheckbox>
2927
</IonItem>
3028
<IonButton expand="block">Button</IonButton>
3129
</IonContent>

static/usage/v7/backdrop/basic/vue.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
</ion-header>
1010
<ion-content class="ion-padding">
1111
<ion-item>
12-
<ion-checkbox slot="start"></ion-checkbox>
13-
<ion-label>Checkbox</ion-label>
12+
<ion-checkbox>Checkbox</ion-checkbox>
1413
</ion-item>
1514
<ion-button expand="block">Button</ion-button>
1615
</ion-content>
@@ -25,13 +24,12 @@
2524
IonContent,
2625
IonItem,
2726
IonCheckbox,
28-
IonLabel,
2927
IonButton,
3028
} from '@ionic/vue';
3129
import { defineComponent } from 'vue';
3230
3331
export default defineComponent({
34-
components: { IonBackdrop, IonHeader, IonToolbar, IonTitle, IonContent, IonItem, IonCheckbox, IonLabel, IonButton },
32+
components: { IonBackdrop, IonHeader, IonToolbar, IonTitle, IonContent, IonItem, IonCheckbox, IonButton },
3533
});
3634
</script>
3735
```

static/usage/v7/item/theming/input-highlight/angular/example_component_css.md

-8
This file was deleted.

static/usage/v7/item/theming/input-highlight/angular/example_component_html.md

-16
This file was deleted.

static/usage/v7/item/theming/input-highlight/demo.html

-48
This file was deleted.

static/usage/v7/item/theming/input-highlight/index.md

-33
This file was deleted.

static/usage/v7/item/theming/input-highlight/javascript.md

-25
This file was deleted.

static/usage/v7/item/theming/input-highlight/react/main_css.md

-8
This file was deleted.

static/usage/v7/item/theming/input-highlight/react/main_tsx.md

-28
This file was deleted.

static/usage/v7/item/theming/input-highlight/vue.md

-36
This file was deleted.

static/usage/v7/label/input/angular.md

-31
This file was deleted.

0 commit comments

Comments
 (0)