File tree Expand file tree Collapse file tree 1 file changed +28
-15
lines changed
Expand file tree Collapse file tree 1 file changed +28
-15
lines changed Original file line number Diff line number Diff 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
159165The [ 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## 必要な変更
You can’t perform that action at this time.
0 commit comments