Skip to content

Commit ee955c5

Browse files
committed
Merge commit '93a38c0f5b9c9f180b308ff49b57ea722c65a4c6'
2 parents 498422e + 93a38c0 commit ee955c5

File tree

1 file changed

+28
-15
lines changed

1 file changed

+28
-15
lines changed

docs/updating/8-0.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -136,24 +136,30 @@ Ionic 8 のハイコントラストパレットをよりよくサポートする
136136

137137
**背景色**に対する `--ion-color-step-[number]` の使用は、トークンの名前を `--ion-background-color-step-[number]` に変更することで移行できます。
138138

139-
**Example**:
139+
**Before**:
140140

141-
```diff
142-
button {
143-
- background: var(--ion-color-step-400);
144-
+ background: var(--ion-background-color-step-400);
145-
}
141+
```html
142+
button { background: var(--ion-color-step-400); }
143+
```
144+
145+
**After**:
146+
147+
```html
148+
button { background: var(--ion-background-color-step-400); }
146149
```
147150

148151
**テキストカラー**`--ion-color-step-[number]` の使用は、トークンの名前を `--ion-text-color-step-[number]` に変更し、1000 から数値を引くことで移行できます。
149152

150-
**Example**:
153+
**Before**:
151154

152-
```diff
153-
button {
154-
- color: var(--ion-color-step-400);
155-
+ color: var(--ion-text-color-step-600); /* 1000 - 400 = 600 */
156-
}
155+
```html
156+
button { color: var(--ion-color-step-400); }
157+
```
158+
159+
**After**:
160+
161+
```html
162+
button { color: var(--ion-text-color-step-600); /* 1000 - 400 = 600 */ }
157163
```
158164

159165
The [stepped color generator](../theming/themes#stepped-color-generator) has been updated to generate text and background color stepped variables.
@@ -176,9 +182,16 @@ The [stepped color generator](../theming/themes#stepped-color-generator) has bee
176182

177183
代わりに `src/global.scss` ファイルを最初にインポートすることをお勧めします:
178184

179-
```diff
180-
- "styles": ["src/theme/variables.scss", "src/global.scss"],
181-
+ "styles": ["src/global.scss", "src/theme/variables.scss"],
185+
**Before**:
186+
187+
```json
188+
"styles": ["src/theme/variables.scss", "src/global.scss"],
189+
```
190+
191+
**After**:
192+
193+
```json
194+
"styles": ["src/global.scss", "src/theme/variables.scss"],
182195
```
183196

184197
## 必要な変更

0 commit comments

Comments
 (0)