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
Copy file name to clipboardExpand all lines: docs/layout/dynamic-font-scaling.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ If you are testing on Chrome for Android, make sure ["Accessibility Page Zoom"](
14
14
15
15
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.
16
16
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';
Copy file name to clipboardExpand all lines: docs/layout/structure.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -22,31 +22,31 @@ Ionic Framework provides several different layouts that can be used to structure
22
22
23
23
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.
24
24
25
-
import Header from '@site/static/usage/v7/header/basic/index.md';
25
+
import Header from '@site/static/usage/v8/header/basic/index.md';
26
26
27
27
<Header />
28
28
29
29
### Footer
30
30
31
31
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.
32
32
33
-
import Footer from '@site/static/usage/v7/footer/basic/index.md';
33
+
import Footer from '@site/static/usage/v8/footer/basic/index.md';
34
34
35
35
<Footer />
36
36
37
37
## Tabs Layout
38
38
39
39
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).
40
40
41
-
import Tabs from '@site/static/usage/v7/tabs/router/index.md';
41
+
import Tabs from '@site/static/usage/v8/tabs/router/index.md';
42
42
43
43
<Tabs />
44
44
45
45
## Menu Layout
46
46
47
47
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.
48
48
49
-
import Menu from '@site/static/usage/v7/menu/basic/index.md';
49
+
import Menu from '@site/static/usage/v8/menu/basic/index.md';
50
50
51
51
<Menu />
52
52
@@ -58,6 +58,6 @@ By default, the split pane view will show when the screen is larger than `768px`
58
58
59
59
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).
60
60
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';
Copy file name to clipboardExpand all lines: docs/theming/dark-mode.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -73,15 +73,15 @@ The demo below prioritizes the site's theme over the system settings. If your sy
73
73
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).
74
74
:::
75
75
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';
77
77
78
78
<AutomaticDarkMode />
79
79
80
80
### Manually Toggle Dark Mode
81
81
82
82
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:
83
83
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';
Copy file name to clipboardExpand all lines: docs/utilities/animations.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ In the example below, an animation that changes the opacity on the `ion-card` el
162
162
163
163
By default, all Ionic Animations are paused until the `play` method is called.
164
164
165
-
import Basic from '@site/static/usage/v7/animations/basic/index.md';
165
+
import Basic from '@site/static/usage/v8/animations/basic/index.md';
166
166
167
167
<Basic />
168
168
@@ -172,7 +172,7 @@ Ionic Animations allows you to control the intermediate steps in an animation us
172
172
173
173
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.
174
174
175
-
import Keyframes from '@site/static/usage/v7/animations/keyframes/index.md';
175
+
import Keyframes from '@site/static/usage/v8/animations/keyframes/index.md';
176
176
177
177
<Keyframes />
178
178
@@ -186,7 +186,7 @@ Multiple elements can be animated at the same time and controlled via a single p
186
186
187
187
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.
188
188
189
-
import Group from '@site/static/usage/v7/animations/group/index.md';
189
+
import Group from '@site/static/usage/v8/animations/group/index.md';
190
190
191
191
<Group />
192
192
@@ -198,15 +198,15 @@ This example sets an inline filter which inverts the background color of the car
198
198
199
199
See [Methods](#methods) for a complete list of hooks.
200
200
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';
202
202
203
203
<BeforeAndAfterHooks />
204
204
205
205
## Chained Animations
206
206
207
207
Animations can be chained to run one after the other. The `play` method returns a Promise that resolves when the animation has completed.
208
208
209
-
import Chain from '@site/static/usage/v7/animations/chain/index.md';
209
+
import Chain from '@site/static/usage/v8/animations/chain/index.md';
210
210
211
211
<Chain />
212
212
@@ -216,7 +216,7 @@ Ionic Animations gives developers the ability to create powerful gesture-based a
216
216
217
217
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.
218
218
219
-
import Gesture from '@site/static/usage/v7/animations/gesture/index.md';
219
+
import Gesture from '@site/static/usage/v8/animations/gesture/index.md';
220
220
221
221
<Gesture />
222
222
@@ -228,7 +228,7 @@ This method works in all supported browsers when creating animations for the fir
228
228
229
229
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).
230
230
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';
232
232
233
233
<PreferenceBased />
234
234
@@ -238,7 +238,7 @@ Certain Ionic components allow developers to provide custom animations. All anim
238
238
239
239
### Modals
240
240
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';
import Basic from '@site/static/usage/v7/gestures/basic/index.md';
165
+
import Basic from '@site/static/usage/v8/gestures/basic/index.md';
166
166
167
167
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`.
168
168
169
169
<Basic />
170
170
171
171
## Double Click Gesture
172
172
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';
174
174
175
175
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.
0 commit comments