|
|
## Live Example
@@ -634,7 +626,6 @@ type UseIonRouterResult = {
The following example shows how to use `useIonRouter`:
-
```tsx
import { useIonRouter } from '@ionic/react';
@@ -643,13 +634,12 @@ const MyComponent: React.FC = () => {
const goToPage = () => {
router.push('/my-page', 'root', 'replace');
};
-
+
...
}
```
-
## More Information
For more info on routing in React using React Router, check out their docs at [https://reacttraining.com/react-router/web](https://reacttraining.com/react-router/web).
diff --git a/docs/react/quickstart.md b/docs/react/quickstart.md
index b4121ce03ea..bb9f77e8cc0 100644
--- a/docs/react/quickstart.md
+++ b/docs/react/quickstart.md
@@ -235,7 +235,7 @@ import { add } from ‘ionicons/icons’;
On our main `IonFab`, we're setting its positioning with the vertical and horizontal attributes. We're also setting the render location to "fixed" with the slot attribute. This will tell `IonFab` to render outside of the scrollable content in `IonContent`.
-Now let's wire up a click handler to this. What we want to do is when we click the button, we'll navigate to a new page (which we'll create in a moment). To do this, we'll need to get access to React Router's `useHistory` hook API. Thankfully the `useHistory` hook makes this easy since it can be imported from the react-router package.
+Now let's wire up a click handler to this. What we want to do is when we click the button, we'll navigate to a new page (which we'll create in a moment). To do this, we'll need to get access to React Router's `useHistory` hook API. Thankfully the `useHistory` hook makes this easy since it can be imported from the react-router package.
```tsx
import { add } from 'ionicons/icons';
diff --git a/docs/reference/browser-support.md b/docs/reference/browser-support.md
index fe10d28861b..12a79e474b5 100644
--- a/docs/reference/browser-support.md
+++ b/docs/reference/browser-support.md
@@ -39,9 +39,8 @@ Because Ionic is based on web technologies, it works just as well on desktop bro
| Browser | Ionic v7 | Ionic v6 | Ionic v5 | Ionic v4 |
| :---------: | :------: | :------: | :------: | :------: |
-| **Chrome** | 79+ | 60+ | ✔ | ✔ |
-| **Safari** | 14+ | 13+ | ✔ | ✔ |
-| **Edge** | 79+ | 79+ | 79+ | ✔ |
-| **Firefox** | 70+ | 63+ | ✔ | ✔ |
-| **IE 11** | **X** | **X** | **X** | **X** |
-
+| **Chrome** | 79+ | 60+ | ✔ | ✔ |
+| **Safari** | 14+ | 13+ | ✔ | ✔ |
+| **Edge** | 79+ | 79+ | 79+ | ✔ |
+| **Firefox** | 70+ | 63+ | ✔ | ✔ |
+| **IE 11** | **X** | **X** | **X** | **X** |
diff --git a/docs/reference/support.md b/docs/reference/support.md
index c21749e5a4f..76c8b2306e1 100644
--- a/docs/reference/support.md
+++ b/docs/reference/support.md
@@ -20,15 +20,15 @@ Given the reality of time and resource constraints as well as the desire to keep
The current status of each Ionic Framework version is:
-| Version | Status | Released | Maintenance Ends | Ext. Support Ends |
-| :-----: | :-------------------: | :----------: | :--------------: | :---------------: |
-| V7 | **Active** | Mar 29, 2023 | TBD | TBD |
-| V6 | Maintenance | Dec 8, 2021 | Sep 29, 2023 | Mar 29, 2024 |
-| V5 | End of Support | Feb 11, 2020 | June 8, 2022 | Dec 8, 2022 |
-| V4 | End of Support | Jan 23, 2019 | Aug 11, 2020 | Sept 30, 2022 |
-| V3 | End of Support | Apr 5, 2017 | Oct 30, 2019 | Aug 11, 2020 |
-| V2 | End of Support | Jan 25, 2017 | Apr 5, 2017 | Apr 5, 2017 |
-| V1 | End of Support | May 12, 2015 | Jan 25, 2017 | Jan 25, 2017 |
+| Version | Status | Released | Maintenance Ends | Ext. Support Ends |
+| :-----: | :------------: | :----------: | :--------------: | :---------------: |
+| V7 | **Active** | Mar 29, 2023 | TBD | TBD |
+| V6 | Maintenance | Dec 8, 2021 | Sep 29, 2023 | Mar 29, 2024 |
+| V5 | End of Support | Feb 11, 2020 | June 8, 2022 | Dec 8, 2022 |
+| V4 | End of Support | Jan 23, 2019 | Aug 11, 2020 | Sept 30, 2022 |
+| V3 | End of Support | Apr 5, 2017 | Oct 30, 2019 | Aug 11, 2020 |
+| V2 | End of Support | Jan 25, 2017 | Apr 5, 2017 | Apr 5, 2017 |
+| V1 | End of Support | May 12, 2015 | Jan 25, 2017 | Jan 25, 2017 |
- **Maintenance**: Only critical bug and security fixes. No major feature improvements.
- **Extended Support**: For teams and organizations that require additional long term support, Ionic has extended support options available. To learn more, see our [Enterprise offerings](https://ionicframework.com/enterprise).
@@ -43,11 +43,11 @@ The Ionic team has compiled a set of recommendations for using the Ionic Framewo
| Framework | Minimum Angular Version | Maximum Angular Version | TypeScript |
| :-------: | :---------------------: | :---------------------: | :--------: |
-| v7 | v14 | v15.x^ | 4.6+ |
-| v6 | v12 | v15.x^ | 4.0+ |
-| v5 | v8.2 | v12.x | 3.5+ |
-| v4 | v8.2 | v11.x | 3.5+ |
-| v3 | v5.2.11 | v5.2.11 | 2.6.2 |
+| v7 | v14 | v15.x^ | 4.6+ |
+| v6 | v12 | v15.x^ | 4.0+ |
+| v5 | v8.2 | v12.x | 3.5+ |
+| v4 | v8.2 | v11.x | 3.5+ |
+| v3 | v5.2.11 | v5.2.11 | 2.6.2 |
> ^ Angular 14.x supported starting in Ionic v6.1.9. Angular 15.x supported starting in Ionic v6.3.6.
@@ -61,18 +61,18 @@ Note that later versions of Ionic do not support iOS 13; see [mobile support tab
| Framework | Required React Version | TypeScript |
| :-------: | :--------------------: | :--------: |
-| v7 | v17+ | 3.7+ |
-| v6 | v17+ | 3.7+ |
-| v5 | v16.8+ | 3.7+ |
-| v4 | v16.8+ | 3.7+ |
+| v7 | v17+ | 3.7+ |
+| v6 | v17+ | 3.7+ |
+| v5 | v16.8+ | 3.7+ |
+| v4 | v16.8+ | 3.7+ |
#### Ionic Vue
| Framework | Required Vue Version | TypeScript |
| :-------: | :------------------: | :--------: |
-| v7 | v3.0.6+ | 3.9+ |
-| v6 | v3.0.6+ | 3.9+ |
-| v5 | v3.0+ | 3.9+ |
+| v7 | v3.0.6+ | 3.9+ |
+| v6 | v3.0.6+ | 3.9+ |
+| v5 | v3.0+ | 3.9+ |
### Native Bridges
diff --git a/docs/theming/css-shadow-parts.md b/docs/theming/css-shadow-parts.md
index b0106a79361..6d539b9cc55 100644
--- a/docs/theming/css-shadow-parts.md
+++ b/docs/theming/css-shadow-parts.md
@@ -124,9 +124,11 @@ CSS Shadow Parts are supported in the recent versions of all of the major browse
### Vendor Prefixed Pseudo-Elements
- - Vendor prefixed - pseudo-elements are not supported at this time. An example of this would be any of the `::-webkit-scrollbar` pseudo-elements: + + Vendor prefixed + {' '} + pseudo-elements are not supported at this time. An example of this would be any of the `::-webkit-scrollbar` + pseudo-elements:
```css diff --git a/docs/updating/6-0.md b/docs/updating/6-0.md index 073705c7540..321daf2f0e3 100644 --- a/docs/updating/6-0.md +++ b/docs/updating/6-0.md @@ -58,6 +58,7 @@ npm install @ionic/react@6 @ionic/react-router@6 4. Import and call `setupIonicReact` in your `App` component file. If you are also using `setupConfig`, pass your config to `setupIonicReact` instead: **Before** + ```tsx title="App.tsx" import { setupConfig } from '@ionic/react'; @@ -69,6 +70,7 @@ setupConfig({ ``` **After** + ```tsx title="App.tsx" import { setupIonicReact } from '@ionic/react'; @@ -88,11 +90,13 @@ See the [React Config Documentation](../developing/config) for more examples. 5. Update all controller imports from `@ionic/core` to `@ionic/core/components`. As an example, here is a migration for `menuController`: **Before** + ```tsx import { menuController } from '@ionic/core'; ``` **After** + ```tsx import { menuController } from '@ionic/core/components'; ``` @@ -152,6 +156,7 @@ See the [Testing section below](#testing) for more information. 8. Rename any overlay event listeners to use the new format: **Before** + ```html
|
|
## Components
diff --git a/docs/vue/pwa.md b/docs/vue/pwa.md
index 7e85935bd9f..b17db3e2ea2 100644
--- a/docs/vue/pwa.md
+++ b/docs/vue/pwa.md
@@ -24,16 +24,13 @@ npm install -D vite-plugin-pwa
Next, update your `vite.config.js` or `vite.config.ts` file and add `vite-plugin-pwa`:
```javascript
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-import { VitePWA } from 'vite-plugin-pwa'
+import { defineConfig } from 'vite';
+import vue from '@vitejs/plugin-vue';
+import { VitePWA } from 'vite-plugin-pwa';
export default defineConfig({
- plugins: [
- vue(),
- VitePWA({ registerType: 'autoUpdate' })
- ],
-})
+ plugins: [vue(), VitePWA({ registerType: 'autoUpdate' })],
+});
```
This minimal configuration allows your application to generate the Web Application Manifest and Service Worker on build.
diff --git a/docs/vue/quickstart.md b/docs/vue/quickstart.md
index bf6c36e621d..6738b35511f 100644
--- a/docs/vue/quickstart.md
+++ b/docs/vue/quickstart.md
@@ -100,7 +100,7 @@ If we open `App.vue` we should see the following:
Let's break it down, starting with the imports.
-```tsx
+```html
@@ -289,7 +289,19 @@ For brevity, we are excluding repeating parts of our component, like the functio
```
@@ -326,7 +338,22 @@ Let's look at another component from Ionic Framework, FAB. Floating Action Butto
```
diff --git a/docs/vue/slides.md b/docs/vue/slides.md
index 854c845d6d0..1ee72d337bc 100644
--- a/docs/vue/slides.md
+++ b/docs/vue/slides.md
@@ -433,7 +433,7 @@ Below is a full list of method changes when going from `ion-slides` to Swiper Vu
| isBeginning() | Use the `isBeginning` property instead. |
| isEnd() | Use the `isEnd` property instead. |
| length() | Use the `slides` property instead. (i.e swiperRef.slides.length) |
-| lockSwipeToNext() | Use the `allowSlideNext` property instead. |
+| lockSwipeToNext() | Use the `allowSlideNext` property instead. |
| lockSwipeToPrev() | Use the `allowSlidePrev` property instead. |
| lockSwipes() | Use the `allowSlideNext`, `allowSlidePrev`, and `allowTouchMove` properties instead. |
| startAutoplay() | Use the `autoplay` property instead. |
diff --git a/docs/vue/your-first-app.md b/docs/vue/your-first-app.md
index 006d719f400..c792cb40193 100644
--- a/docs/vue/your-first-app.md
+++ b/docs/vue/your-first-app.md
@@ -168,7 +168,7 @@ Next, remove the `ExploreContainer` node from the HTML markup in the `template`.
- Premium, supported plugins, third-party integrations, and pre-built native solutions for - building enterprise-grade apps. + Premium, supported plugins, third-party integrations, and pre-built native solutions for building + enterprise-grade apps.
diff --git a/static/demos/api/datetime/index.html b/static/demos/api/datetime/index.html
index faf3e78c693..09c74c31df2 100644
--- a/static/demos/api/datetime/index.html
+++ b/static/demos/api/datetime/index.html
@@ -47,7 +47,7 @@