Skip to content

Commit 388c0e1

Browse files
fix(docs): update playgrounds to use v8 (#3381)
1 parent b667ca4 commit 388c0e1

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

docs/developing/keyboard.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For a list of accepted values, see the <a href="https://developer.mozilla.org/en
2727

2828
### Usage
2929

30-
import Inputmode from '@site/static/usage/v7/keyboard/inputmode/index.md';
30+
import Inputmode from '@site/static/usage/v8/keyboard/inputmode/index.md';
3131

3232
<Inputmode />
3333

@@ -45,7 +45,7 @@ For a list of accepted values, see the <a href="https://html.spec.whatwg.org/dev
4545

4646
### Usage
4747

48-
import Enterkeyhint from '@site/static/usage/v7/keyboard/enterkeyhint/index.md';
48+
import Enterkeyhint from '@site/static/usage/v8/keyboard/enterkeyhint/index.md';
4949

5050
<Enterkeyhint />
5151

docs/developing/managing-focus.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ There are platform restrictions you should be aware of when using the `setFocus`
3535

3636
The example below demonstrates how to use the `setFocus` API to request focus on an input when the user clicks a button.
3737

38-
import Basic from '@site/static/usage/v7/input/set-focus/index.md';
38+
import Basic from '@site/static/usage/v8/input/set-focus/index.md';
3939

4040
<Basic />
4141

docs/layout/dynamic-font-scaling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you are testing on Chrome for Android, make sure ["Accessibility Page Zoom"](
1414

1515
Follow the [Changing the Font Size on a Device](#changing-the-font-size-on-a-device) guide to set your preferred font size, and watch the text in the demo below grow or shrink according to your preferences.
1616

17-
import DynamicFontScaling from '@site/static/usage/v7/layout/dynamic-font-scaling/index.md';
17+
import DynamicFontScaling from '@site/static/usage/v8/layout/dynamic-font-scaling/index.md';
1818

1919
<DynamicFontScaling />
2020

docs/layout/structure.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,31 @@ Ionic Framework provides several different layouts that can be used to structure
2222

2323
The most simple layout available consists of a [header](../api/header.md) and [content](../api/content.md). Most pages in an app generally have both of these, but a header is not required in order to use content.
2424

25-
import Header from '@site/static/usage/v7/header/basic/index.md';
25+
import Header from '@site/static/usage/v8/header/basic/index.md';
2626

2727
<Header />
2828

2929
### Footer
3030

3131
While a toolbar in a header appears above the content, a footer appears below the content. A header and a footer can also be used together on the same page.
3232

33-
import Footer from '@site/static/usage/v7/footer/basic/index.md';
33+
import Footer from '@site/static/usage/v8/footer/basic/index.md';
3434

3535
<Footer />
3636

3737
## Tabs Layout
3838

3939
A layout consisting of horizontal [tabs](../api/tabs.md) can be used to let the user quickly change between content views. Each tab can contain static content or a navigation stack by using a [router outlet](../api/router-outlet.md) or [nav](../api/nav.md).
4040

41-
import Tabs from '@site/static/usage/v7/tabs/router/index.md';
41+
import Tabs from '@site/static/usage/v8/tabs/router/index.md';
4242

4343
<Tabs />
4444

4545
## Menu Layout
4646

4747
A standard layout among mobile apps includes the ability to toggle a side [menu](../api/menu.md) by clicking a button or swiping it open from the side. Side menus are generally used for navigation, but they can contain any content.
4848

49-
import Menu from '@site/static/usage/v7/menu/basic/index.md';
49+
import Menu from '@site/static/usage/v8/menu/basic/index.md';
5050

5151
<Menu />
5252

@@ -58,6 +58,6 @@ By default, the split pane view will show when the screen is larger than `768px`
5858

5959
It's important to note that the element with the `id` matching the `contentId` specified by the split pane will be the main content that is always visible. This can be any element, including a [nav](../api/nav.md), [router outlet](../api/router-outlet.md), or [tabs](../api/tabs.md).
6060

61-
import SplitPane from '@site/static/usage/v7/split-pane/basic/index.md';
61+
import SplitPane from '@site/static/usage/v8/split-pane/basic/index.md';
6262

6363
<SplitPane />

docs/theming/dark-mode.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ The demo below prioritizes the site's theme over the system settings. If your sy
7373
Not sure how to change the system settings? Here's [how to enable dark mode on Windows 11](https://support.microsoft.com/en-us/windows/change-colors-in-windows-d26ef4d6-819a-581c-1581-493cfcc005fe) and [how to enable it on a Mac](https://support.apple.com/en-us/HT208976).
7474
:::
7575

76-
import AutomaticDarkMode from '@site/static/usage/v7/theming/automatic-dark-mode/index.md';
76+
import AutomaticDarkMode from '@site/static/usage/v8/theming/automatic-dark-mode/index.md';
7777

7878
<AutomaticDarkMode />
7979

8080
### Manually Toggle Dark Mode
8181

8282
In addition to adding the `dark` class to the `<body>` when the media query changes, the class can be added by the app, such as when a user changes a toggle, to switch between the light and dark themes:
8383

84-
import ManualDarkMode from '@site/static/usage/v7/theming/manual-dark-mode/index.md';
84+
import ManualDarkMode from '@site/static/usage/v8/theming/manual-dark-mode/index.md';
8585

8686
<ManualDarkMode />
8787

docs/utilities/animations.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ In the example below, an animation that changes the opacity on the `ion-card` el
162162

163163
By default, all Ionic Animations are paused until the `play` method is called.
164164

165-
import Basic from '@site/static/usage/v7/animations/basic/index.md';
165+
import Basic from '@site/static/usage/v8/animations/basic/index.md';
166166

167167
<Basic />
168168

@@ -172,7 +172,7 @@ Ionic Animations allows you to control the intermediate steps in an animation us
172172

173173
Hyphenated CSS properties should be written using camel case when writing keyframes. For example, `border-radius` should be written as `borderRadius`. This also applies to the `fromTo()`, `from(),` and `to()` methods.
174174

175-
import Keyframes from '@site/static/usage/v7/animations/keyframes/index.md';
175+
import Keyframes from '@site/static/usage/v8/animations/keyframes/index.md';
176176

177177
<Keyframes />
178178

@@ -186,7 +186,7 @@ Multiple elements can be animated at the same time and controlled via a single p
186186

187187
This example shows 3 child animations controlled by a single parent animation. Animations `cardA` and `cardB` inherit the parent animation's duration of 2000ms, but animation `cardC` has a duration of 5000ms since it was explicitly set.
188188

189-
import Group from '@site/static/usage/v7/animations/group/index.md';
189+
import Group from '@site/static/usage/v8/animations/group/index.md';
190190

191191
<Group />
192192

@@ -198,15 +198,15 @@ This example sets an inline filter which inverts the background color of the car
198198

199199
See [Methods](#methods) for a complete list of hooks.
200200

201-
import BeforeAndAfterHooks from '@site/static/usage/v7/animations/before-and-after-hooks/index.md';
201+
import BeforeAndAfterHooks from '@site/static/usage/v8/animations/before-and-after-hooks/index.md';
202202

203203
<BeforeAndAfterHooks />
204204

205205
## Chained Animations
206206

207207
Animations can be chained to run one after the other. The `play` method returns a Promise that resolves when the animation has completed.
208208

209-
import Chain from '@site/static/usage/v7/animations/chain/index.md';
209+
import Chain from '@site/static/usage/v8/animations/chain/index.md';
210210

211211
<Chain />
212212

@@ -216,7 +216,7 @@ Ionic Animations gives developers the ability to create powerful gesture-based a
216216

217217
In the following example we are creating a track along which we can drag the card element. Our `animation` object will take care of moving the card element either left or right, and our `gesture` object will instruct the `animation` object which direction to move in.
218218

219-
import Gesture from '@site/static/usage/v7/animations/gesture/index.md';
219+
import Gesture from '@site/static/usage/v8/animations/gesture/index.md';
220220

221221
<Gesture />
222222

@@ -228,7 +228,7 @@ This method works in all supported browsers when creating animations for the fir
228228

229229
Safari does not currently support dynamically updating keyframe animations. For developers who need this kind of support in Safari, they can use [MediaQueryList.addListener()](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener).
230230

231-
import PreferenceBased from '@site/static/usage/v7/animations/preference-based/index.md';
231+
import PreferenceBased from '@site/static/usage/v8/animations/preference-based/index.md';
232232

233233
<PreferenceBased />
234234

@@ -238,7 +238,7 @@ Certain Ionic components allow developers to provide custom animations. All anim
238238

239239
### Modals
240240

241-
import ModalOverride from '@site/static/usage/v7/animations/modal-override/index.md';
241+
import ModalOverride from '@site/static/usage/v8/animations/modal-override/index.md';
242242

243243
<ModalOverride />
244244

docs/utilities/gestures.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,15 @@ const gesture = createGesture({
162162

163163
## Basic Gestures
164164

165-
import Basic from '@site/static/usage/v7/gestures/basic/index.md';
165+
import Basic from '@site/static/usage/v8/gestures/basic/index.md';
166166

167167
In this example, our app listens for gestures on the `ion-content` element. When a gesture movement has started, the `onStart` function is called and a class is added to our `ion-card` to add a colored box shadow. When a gesture movement was detected, the `onMove` function is called and our app prints the current gesture information within the `ion-card`. Finally, when a gesture movement has ended, the `onEnd` function is called and the custom class is removed from our `ion-card`.
168168

169169
<Basic />
170170

171171
## Double Click Gesture
172172

173-
import DoubleClick from '@site/static/usage/v7/gestures/double-click/index.md';
173+
import DoubleClick from '@site/static/usage/v8/gestures/double-click/index.md';
174174

175175
In the example below, we want to be able to detect double clicks on an element. By setting our `threshold` to `0`, we can ensure our gesture object can detect clicks. Additionally, we define a click threshold so that only 2 clicks that occur in quick succession count as a double click.
176176

0 commit comments

Comments
 (0)