Skip to content

Commit 4d24294

Browse files
authored
chore: sync with main
chore: sync with main
2 parents 886811f + b55b9a4 commit 4d24294

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+497
-528
lines changed

docs/angular/your-first-app.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ Next, create an Ionic Angular app that uses the “Tabs” starter template and
7777
ionic start photo-gallery tabs --type=angular --capacitor
7878
```
7979

80+
:::note
81+
82+
When prompted to choose between `NgModules` and `Standalone`, opt for `NgModules` as this tutorial follows the `NgModules` approach.
83+
84+
:::
85+
8086
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!
8187

8288
Next, change into the app folder:

docs/api/infinite-scroll.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import CustomContent from '@site/static/usage/v8/infinite-scroll/custom-infinite
4343

4444
## Usage with Virtual Scroll
4545

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.
4747

4848
```html
4949
<ion-content scroll-y="false">
@@ -56,6 +56,12 @@ Infinite scroll requires a scroll container to function. When using a virtual sc
5656
</ion-content>
5757
```
5858

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+
5965
## Accessibility
6066

6167
Developers should assign the `role="feed"` attribute to the scrollable list of items that are added to or removed from as the user scrolls.

docs/api/input.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ import StartEndSlots from '@site/static/usage/v7/input/start-end-slots/index.md'
170170

171171
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.
172172

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+
173177
import Colors from '@site/static/usage/v8/input/theming/colors/index.md';
174178

175179
<Colors />

docs/api/toast.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ While this is not a complete list, here are some guidelines to follow when using
208208

209209
* For toasts with long messages, consider adjusting the `duration` property to allow users enough time to read the content of the toast.
210210

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.
214+
211215
## Interfaces
212216

213217
### ToastButton

docs/core-concepts/cross-platform.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
disableHtmlPreviews: true
2+
title: Cross Platform
33
---
44

55
# Cross Platform

docs/developing/config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ Below are the config options that Ionic uses.
191191
| `popoverLeave` | `AnimationBuilder` | Provides a custom leave animation for all `ion-popover`, overriding the default "animation". |
192192
| `refreshingIcon` | `string` | Overrides the default icon in all `<ion-refresh-content>` components. |
193193
| `refreshingSpinner` | `SpinnerTypes` | Overrides the default spinner type in all `<ion-refresh-content>` components. |
194+
| `rippleEffect` | `boolean` | If `true`, Material Design ripple effects will be enabled across the app. |
194195
| `sanitizerEnabled` | `boolean` | If `true`, Ionic will enable a basic DOM sanitizer on component properties that accept custom HTML. |
195196
| `spinner` | `SpinnerTypes` | Overrides the default spinner in all `<ion-spinner>` components. |
196197
| `statusTap` | `boolean` | If `true`, clicking or tapping the status bar will cause the content to scroll to the top. |

docs/layout/css-utilities.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
title: CSS Utilities
3-
initialTab: 'preview'
4-
inlineHtmlPreviews: true
53
---
64

75
<head>

docs/layout/global-stylesheets.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
title: Global Stylesheets
3-
initialTab: 'preview'
4-
inlineHtmlPreviews: true
53
---
64

75
<head>

docs/layout/structure.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Structure
3-
initialTab: 'preview'
43
---
54

65
import DocsCard from '@components/global/DocsCard';

docs/react/quickstart.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ When creating your own pages, don't forget to have `IonPage` be the root compone
171171
Our current content is relatively simple but does not contain anything that could be used in a real app, so let's change that.
172172

173173
:::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.
175175
:::
176176

177177
```tsx
@@ -180,11 +180,10 @@ For brevity, we're excluding repeating part of our component, like the function
180180
<IonContent>
181181
<IonList>
182182
<IonItem>
183-
<IonCheckbox slot="start" />
184-
<IonLabel>
183+
<IonCheckbox labelPlacement="end" justify="start">
185184
<h1>Create Idea</h1>
186185
<IonNote>Run Idea by Brandy</IonNote>
187-
</IonLabel>
186+
</IonCheckbox>
188187
<IonBadge color="success" slot="end">
189188
5 Days
190189
</IonBadge>
@@ -198,20 +197,17 @@ Here in our `IonContent`, we're adding an `IonList` and a much more involved `Io
198197

199198
```tsx
200199
<IonItem>
201-
<IonCheckbox slot="start" />
202-
<IonLabel>
200+
<IonCheckbox labelPlacement="end" justify="start">
203201
<h1>Create Idea</h1>
204202
<IonNote>Run Idea by Brandy</IonNote>
205-
</IonLabel>
203+
</IonCheckbox>
206204
<IonBadge color="success" slot="end">
207205
5 Days
208206
</IonBadge>
209207
</IonItem>
210208
```
211209

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).)
215211

216212
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.
217213

docs/techniques/security.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Security
3-
disableHtmlPreviews: true
43
---
54

65
<head>

docs/theming/advanced.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Advanced Theming
33
sidebar_label: Advanced
4-
initialTab: 'preview'
5-
inlineHtmlPreviews: true
64
---
75

86
import CodeColor from '@components/page/theming/CodeColor';

docs/theming/colors.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
title: Colors
3-
initialTab: 'preview'
4-
inlineHtmlPreviews: true
53
---
64

75
import LayeredColorsSelect from '@components/page/theming/LayeredColorsSelect';

docs/theming/css-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Ionic components are built with <a href="https://developer.mozilla.org/en-US/doc
1818

1919
CSS variables can be set globally in an application in the `:root` selector. They can also be applied only for a specific mode. See [Ionic Variables](#ionic-variables) for more information on the global variables Ionic provides.
2020

21-
When using the Ionic CLI to start an Angular project, the `src/theme/variables.scss` file is created where you can override the default Ionic Variables.
21+
When using the Ionic CLI to start an Angular, React or Vue project, the `src/theme/variables.scss` file is created where you can override the default Ionic Variables.
2222

2323
```css
2424
/* Set variables for all modes */

docs/theming/dark-mode.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
title: Dark Mode
3-
initialTab: 'preview'
4-
inlineHtmlPreviews: true
53
---
64

75
import Tabs from '@theme/Tabs';

docs/troubleshooting/build.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
disableHtmlPreviews: true
32
title: Build Errors
43
---
54

docs/vue/quickstart.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,11 @@ For brevity, we are excluding repeating parts of our component, like the functio
282282
<ion-content>
283283
<ion-list>
284284
<ion-item>
285-
<ion-checkbox slot="start"></ion-checkbox>
286-
<ion-label>
285+
<ion-checkbox label-placement="end" justify="start">
287286
<h1>Create Idea</h1>
288287
<ion-note>Run Idea By Brandy</ion-note>
289-
</ion-label>
290-
<ion-badge color="success" slot="end"> 5 Days </ion-badge>
288+
</ion-checkbox>
289+
<ion-badge color="success" slot="end">5 Days</ion-badge>
291290
</ion-item>
292291
</ion-list>
293292
</ion-content>
@@ -301,7 +300,6 @@ For brevity, we are excluding repeating parts of our component, like the functio
301300
IonContent,
302301
IonHeader,
303302
IonItem,
304-
IonLabel,
305303
IonList,
306304
IonNote,
307305
IonPage,
@@ -315,16 +313,15 @@ Here in our `IonContent`, we are adding an `IonList` and a much more involved `I
315313

316314
```html
317315
<ion-item>
318-
<ion-checkbox slot="start"></ion-checkbox>
319-
<ion-label>
316+
<ion-checkbox label-placement="end" justify="start">
320317
<h1>Create Idea</h1>
321318
<ion-note>Run Idea By Brandy</ion-note>
322-
</ion-label>
323-
<ion-badge color="success" slot="end"> 5 Days </ion-badge>
319+
</ion-checkbox>
320+
<ion-badge color="success" slot="end">5 Days</ion-badge>
324321
</ion-item>
325322
```
326323

327-
Looking at our code, 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 Vue API, but a web standards API. Additionally, this is different from the slots API you may recall from Vue 2.
324+
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 Vue API, but a web standards API, and it is used across many Ionic Framework components. Additionally, this is different from the slots API you may recall from Vue 2. (For more information on slots, [see the MDN docs here](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot).)
328325

329326
Let's look at another component from Ionic Framework, 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 will need three components: a FAB, a FAB Button, and an Icon.
330327

@@ -353,7 +350,6 @@ Let's look at another component from Ionic Framework, FAB. Floating Action Butto
353350
IonHeader,
354351
IonIcon,
355352
IonItem,
356-
IonLabel,
357353
IonList,
358354
IonNote,
359355
IonPage,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
"deploy": "docusaurus deploy",
1616
"docusaurus": "docusaurus",
1717
"generate-markdown": "node scripts/native.mjs && concurrently \"node scripts/cli.mjs\" \"node scripts/release-notes.mjs\"",
18-
"lint": "npm run prettier -- --write --cache",
18+
"lint": "npm run prettier -- --write",
1919
"serve": "docusaurus serve",
2020
"playground:new": "hygen playground new",
2121
"prestart": "npm run generate-markdown",
22-
"prettier": "prettier \"./**/*.{html,ts,tsx,js,jsx,md}\"",
22+
"prettier": "prettier \"./**/*.{html,ts,tsx,js,jsx,md}\" --cache",
2323
"start": "docusaurus start",
2424
"swizzle": "docusaurus swizzle",
2525
"spellcheck": "cspell --no-progress \"**/*.md\""

scripts/release-notes.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const getReleases = async () => {
4343
return releasePattern.test(release.tag_name);
4444
})
4545
.map((release) => {
46-
const body = renderMarkdown(release.body.replace(/^#.*/, '')).contents;
46+
const body = renderMarkdown(release.body.replace(/^#.*/, '')).value;
4747
const published_at = parseDate(release.published_at);
4848
const version = release.tag_name.replace('v', '');
4949
const type = getVersionType(version);

static/code/stackblitz/v6/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"dependencies": {
33
"@ionic/angular": "^6.0.0",
44
"@ionic/core": "^6.0.0",
5-
"@angular/platform-browser-dynamic": "17.0.8"
5+
"@angular/platform-browser-dynamic": "17.1.1"
66
}
77
}

0 commit comments

Comments
 (0)