File tree 1 file changed +28
-15
lines changed 1 file changed +28
-15
lines changed Original file line number Diff line number Diff line change @@ -136,24 +136,30 @@ Ionic 8 のハイコントラストパレットをよりよくサポートする
136
136
137
137
** 背景色** に対する ` --ion-color-step-[number] ` の使用は、トークンの名前を ` --ion-background-color-step-[number] ` に変更することで移行できます。
138
138
139
- ** Example ** :
139
+ ** Before ** :
140
140
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); }
146
149
```
147
150
148
151
** テキストカラー** の ` --ion-color-step-[number] ` の使用は、トークンの名前を ` --ion-text-color-step-[number] ` に変更し、1000 から数値を引くことで移行できます。
149
152
150
- ** Example ** :
153
+ ** Before ** :
151
154
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 */ }
157
163
```
158
164
159
165
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
176
182
177
183
代わりに ` src/global.scss ` ファイルを最初にインポートすることをお勧めします:
178
184
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" ],
182
195
```
183
196
184
197
## 必要な変更
You can’t perform that action at this time.
0 commit comments