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: BREAKING.md
+63-5Lines changed: 63 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ This is a comprehensive list of the breaking changes introduced in the major ver
19
19
-[Button](#version-9x-button)
20
20
-[Card](#version-9x-card)
21
21
-[Chip](#version-9x-chip)
22
+
-[Col](#version-9x-col)
22
23
-[Content](#version-9x-content)
23
24
-[Datetime](#version-9x-datetime)
24
25
-[Grid](#version-9x-grid)
@@ -27,6 +28,7 @@ This is a comprehensive list of the breaking changes introduced in the major ver
27
28
-[Item Divider](#version-9x-item-divider)
28
29
-[Menu Toggle](#version-9x-menu-toggle)
29
30
-[Radio Group](#version-9x-radio-group)
31
+
-[Row](#version-9x-row)
30
32
-[Spinner](#version-9x-spinner)
31
33
-[Text](#version-9x-text)
32
34
-[Textarea](#version-9x-textarea)
@@ -87,6 +89,25 @@ This is a comprehensive list of the breaking changes introduced in the major ver
87
89
- Specific theme classes (e.g., `ion-chip.md`) are no longer supported. Style modifications based on the active theme must be implemented using theme tokens rather than direct class targeting.
88
90
- The `border-radius` of the `ios` and `md` chip now defaults to `10px` and `8px`, respectively, instead of `16px` in accordance with the iOS and Material Design 3 guidelines. To revert to the previous appearance, set the `shape` to `"round"`, or override the `IonChip.shape.round.border.radius` to specify a different value for global styles and `--ion-chip-shape-round-border-radius` for component-specific styles.
89
91
92
+
<h4id="version-9x-col">Col</h4>
93
+
94
+
The following breaking changes apply to `ion-col`:
95
+
96
+
1.`--ion-grid-column-padding-*` CSS variables have been replaced with per-side, per-breakpoint tokens in the `col` namespace. <sup>[1](#version-9x-col-padding-variables)</sup>
97
+
2. Theme classes (`ion-col.md`, `ion-col.ios`) are no longer supported. <sup>[2](#version-9x-col-theme-classes)</sup>
Column padding was a single value per breakpoint and is now set per-side, and the variables have moved from the `grid` namespace to the `col` namespace. Use the new token structure for global styles, or the corresponding CSS variable for component-specific overrides:
102
+
103
+
| Old (8.x) | New token (global) | New CSS variable (component-specific) |
Remove any instances that target the theme classes: `ion-col.md`, `ion-col.ios`.
110
+
90
111
<h4id="version-9x-content">Content</h4>
91
112
92
113
The following breaking changes apply to `ion-content`:
@@ -141,9 +162,32 @@ Remove any instances that target the theme classes: `ion-content.md`, `ion-conte
141
162
142
163
<h4id="version-9x-grid">Grid</h4>
143
164
144
-
- The properties `pull` and `push` have been deprecated and no longer work. A similar look can be achieved with the newly added property `order`.
165
+
The following breaking changes apply to `ion-grid`:
166
+
167
+
1.`--ion-grid-padding-*` CSS variables have been replaced with per-side, per-breakpoint tokens. <sup>[1](#version-9x-grid-padding-variables)</sup>
168
+
2.`--ion-grid-width-*` CSS variables for the fixed grid have been replaced with per-breakpoint tokens. <sup>[2](#version-9x-grid-fixed-width-variables)</sup>
169
+
3. The `push` and `pull` properties have been deprecated. <sup>[3](#version-9x-grid-deprecated-push-and-pull-properties)</sup>
170
+
4. Theme classes (`ion-grid.md`, `ion-grid.ios`) are no longer supported. <sup>[4](#version-9x-grid-theme-classes)</sup>
Grid padding was a single value per breakpoint and is now set per-side. Use the new token structure for global styles, or the corresponding CSS variable for component-specific overrides:
175
+
176
+
| Old (8.x) | New token (global) | New CSS variable (component-specific) |
<h5id="version-9x-grid-deprecated-push-and-pull-properties">Deprecated <code>push</code> and <code>pull</code> properties</h5>
187
+
188
+
The `push` and `pull` properties have been disabled. They now log a deprecation warning and no longer affect layout. Use the `order` property to achieve a similar result.
189
+
190
+
**Example 1: Swap two columns**
147
191
148
192
**Version up to 8.x**
149
193
@@ -169,7 +213,7 @@ Remove any instances that target the theme classes: `ion-content.md`, `ion-conte
169
213
</ion-grid>
170
214
```
171
215
172
-
<h5>Example 2: Reorder columns with specific sizes</h5>
216
+
**Example 2: Reorder columns with specific sizes**
173
217
174
218
To reorder two columns where column 1 has `size="9" push="3"` and column 2 has `size="3" pull="9"`:
175
219
@@ -195,7 +239,7 @@ To reorder two columns where column 1 has `size="9" push="3"` and column 2 has `
195
239
</ion-grid>
196
240
```
197
241
198
-
<h5>Example 3: Push</h5>
242
+
**Example 3: Push**
199
243
200
244
```html
201
245
<ion-grid>
@@ -225,7 +269,7 @@ To reorder two columns where column 1 has `size="9" push="3"` and column 2 has `
225
269
</ion-grid>
226
270
```
227
271
228
-
<h5>Example 4: Push and Pull</h5>
272
+
**Example 4: Push and Pull**
229
273
230
274
```html
231
275
<ion-grid>
@@ -255,6 +299,10 @@ To reorder two columns where column 1 has `size="9" push="3"` and column 2 has `
Remove any instances that target the theme classes: `ion-row.md`, `ion-row.ios`.
364
+
307
365
<h4id="version-9x-spinner">Spinner</h4>
308
366
309
367
- Component CSS variables have been removed. The component now utilizes the centralized Ionic Theming system. Global updates should be managed via the theme tokens file, while component-specific overrides are handled through localized CSS variables.
* The size of the column for xs screens, in terms of how many columns it should take up out of the total available. If `"auto"` is passed, the column will be the size of its content.
1044
1044
*/
1045
1045
"sizeXs"?: string;
1046
-
/**
1047
-
* The theme determines the visual appearance of the component.
* The size of the column for xs screens, in terms of how many columns it should take up out of the total available. If `"auto"` is passed, the column will be the size of its content.
7063
7051
*/
7064
7052
"sizeXs"?: string;
7065
-
/**
7066
-
* The theme determines the visual appearance of the component.
0 commit comments