You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When prompted to choose between `NgModules` and `Standalone`, opt for `NgModules` as this tutorial follows the `NgModules` approach.
83
+
84
+
:::
85
+
80
86
This starter project comes complete with three pre-built pages and best practices for Ionic development. With common building blocks already in place, we can add more features easily!
Copy file name to clipboardExpand all lines: docs/api/infinite-scroll.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ import CustomContent from '@site/static/usage/v8/infinite-scroll/custom-infinite
43
43
44
44
## Usage with Virtual Scroll
45
45
46
-
Infinite scroll requires a scroll container to function. When using a virtual scrolling solution, you will need to disable scrolling on the `ion-content` and indicate which element container is responsible for the scroll container with the `.ion-content-scroll-host` class target.
46
+
Infinite scroll requires a scroll container. When using a virtual scrolling solution, you will need to disable scrolling on the `ion-content` and indicate which element container is responsible for the scroll container with the `.ion-content-scroll-host` class target.
47
47
48
48
```html
49
49
<ion-contentscroll-y="false">
@@ -56,6 +56,12 @@ Infinite scroll requires a scroll container to function. When using a virtual sc
56
56
</ion-content>
57
57
```
58
58
59
+
:::note
60
+
61
+
`virtual-scroll-element` refers to the scroll container responsible for scrolling the content. This may be a component provided directly by the virtual scroll solution you are using.
62
+
63
+
:::
64
+
59
65
## Accessibility
60
66
61
67
Developers should assign the `role="feed"` attribute to the scrollable list of items that are added to or removed from as the user scrolls.
Copy file name to clipboardExpand all lines: docs/api/input.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,6 +170,10 @@ import StartEndSlots from '@site/static/usage/v7/input/start-end-slots/index.md'
170
170
171
171
Setting the `color` property changes the color palette for each input. On `ios` mode, this property changes the caret color. On `md` mode, this property changes the caret color and the highlight/underline color.
172
172
173
+
:::note
174
+
The `color` property does *not* change the text color of the input. For that, use the [`--color` CSS property](#css-custom-properties-1).
175
+
:::
176
+
173
177
import Colors from '@site/static/usage/v8/input/theming/colors/index.md';
Copy file name to clipboardExpand all lines: docs/api/toast.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,6 +208,10 @@ While this is not a complete list, here are some guidelines to follow when using
208
208
209
209
* For toasts with long messages, consider adjusting the `duration` property to allow users enough time to read the content of the toast.
210
210
211
+
* If adding buttons to a toast, always provide alternative ways of completing the actions associated with each button. This ensures that even if the toast dismisses before a user can read it, they can still complete the actions shown in the toast.
212
+
213
+
* Avoid showing a toast with buttons from inside another overlay such as a [modal](./modal). Modals and other overlays implement [focus trapping](./modal#focus-trapping) that will prevent screen readers from moving focus to the toast to complete the actions. This may be confusing for users since the toast will still be announced by screen readers. This is true even if alternative ways of completing the actions associated with each button are implemented. Consider creating a [live region](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions) within the focus-trapped modal instead of using a toast.
Copy file name to clipboardExpand all lines: docs/react/quickstart.md
+6-10Lines changed: 6 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,7 @@ When creating your own pages, don't forget to have `IonPage` be the root compone
171
171
Our current content is relatively simple but does not contain anything that could be used in a real app, so let's change that.
172
172
173
173
:::note
174
-
For brevity, we're excluding repeating part of our component, like the function declaration or import statements for other components.
174
+
For brevity, we're excluding repeating parts of our component, like the function declaration or import statements for other components.
175
175
:::
176
176
177
177
```tsx
@@ -180,11 +180,10 @@ For brevity, we're excluding repeating part of our component, like the function
180
180
<IonContent>
181
181
<IonList>
182
182
<IonItem>
183
-
<IonCheckboxslot="start" />
184
-
<IonLabel>
183
+
<IonCheckboxlabelPlacement="end"justify="start">
185
184
<h1>Create Idea</h1>
186
185
<IonNote>Run Idea by Brandy</IonNote>
187
-
</IonLabel>
186
+
</IonCheckbox>
188
187
<IonBadgecolor="success"slot="end">
189
188
5 Days
190
189
</IonBadge>
@@ -198,20 +197,17 @@ Here in our `IonContent`, we're adding an `IonList` and a much more involved `Io
198
197
199
198
```tsx
200
199
<IonItem>
201
-
<IonCheckboxslot="start" />
202
-
<IonLabel>
200
+
<IonCheckboxlabelPlacement="end"justify="start">
203
201
<h1>Create Idea</h1>
204
202
<IonNote>Run Idea by Brandy</IonNote>
205
-
</IonLabel>
203
+
</IonCheckbox>
206
204
<IonBadgecolor="success"slot="end">
207
205
5 Days
208
206
</IonBadge>
209
207
</IonItem>
210
208
```
211
209
212
-
Item is important as it clearly shows the mix of React concepts and Web Component concepts. The first clear example of a React concept is self-closing tags for React Components in `IonCheckbox`. This is just a simpler way of writing components that do not contain any child content.
213
-
214
-
From the Web Components side, we have a special attribute called `slot`. This is key for letting the `IonItem` know where to place the `IonCheckbox` when it renders. This is not a React API, but a web standards API.
210
+
Looking at our code, we have a special attribute called `slot`. This is key for letting the `IonItem` know where to place the `IonBadge` when it renders. This is not a React API, but a web standards API, and it is used in many Ionic Framework components. (For more information on slots, [see the MDN docs here](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot).)
215
211
216
212
Let's look at another component from Ionic, FAB. Floating Action Buttons are a nice way to provide a main action that is elevated from the rest of an app. For this FAB, we'll need three components: a FAB, a FAB Button, and an Icon.
0 commit comments