From a0a7f358f6e42153e17c968b404bbcc22caef703 Mon Sep 17 00:00:00 2001 From: Brandy Smith <6577830+brandyscarney@users.noreply.github.com> Date: Wed, 30 Sep 2026 18:07:54 -0400 Subject: [PATCH 01/10] feat(grid, col): resolve breakpoints from config --- BREAKING.md | 176 ++++--- core/api.txt | 6 +- core/src/components.d.ts | 56 ++- core/src/components/col/col.interface.ts | 14 +- core/src/components/col/col.scss | 3 +- core/src/components/col/col.tsx | 473 +++++++++++++----- core/src/components/grid/grid.interface.ts | 8 +- core/src/components/grid/grid.mixins.scss | 74 ++- core/src/components/grid/grid.scss | 8 +- core/src/components/grid/grid.tsx | 15 +- .../grid/test/breakpoints/index.html | 240 +++++++++ .../grid/test/offsets-pull-push/grid.e2e.ts | 2 +- 12 files changed, 817 insertions(+), 258 deletions(-) create mode 100644 core/src/components/grid/test/breakpoints/index.html diff --git a/BREAKING.md b/BREAKING.md index f9e61176941..6c022d272dd 100644 --- a/BREAKING.md +++ b/BREAKING.md @@ -123,7 +123,9 @@ This is a comprehensive list of the breaking changes introduced in the major ver The following breaking changes apply to `ion-col`: 1. `--ion-grid-column-padding-*` CSS variables have been replaced with per-side, per-breakpoint tokens in the `col` namespace. [1](#version-10x-col-padding-variables) -2. Theme classes (`ion-col.md`, `ion-col.ios`) are no longer supported. [2](#version-10x-col-theme-classes) +2. The breakpoint-suffixed `size`, `order` and `offset` properties have been deprecated. [2](#version-10x-col-deprecated-breakpoint-properties) +3. The `push` and `pull` properties have been deprecated. [3](#version-10x-col-deprecated-push-and-pull-properties) +4. Theme classes (`ion-col.md`, `ion-col.ios`) are no longer supported. [4](#version-10x-col-theme-classes)
push and pull propertiespush and pull properties+ Configured breakpoints: xs 0, sm 200, md 400, lg 600, xl 800, xxl 1000. Resize the window to step through + them. +
+ +
+ The default fixed widths (540px at sm, up to 1320px at xxl) are sized for the default thresholds. Moving the
+ thresholds down without also moving these widths would leave the grid wider than the screen, where
+ max-width: 100% clamps it, so they are overridden to match.
+
+ Each column spans xs 12, sm 6, md 4, lg 3, xl 2, xxl 1 of the 12 column grid, so the row goes from one column + per line to twelve as the screen grows. +
+- Configured breakpoints: xs 0, sm 200, md 400, lg 600, xl 800, xxl 1000. Resize the window to step through - them. -
+Resize the window to step through the configured breakpoints.
+ +| Breakpoint | +Activates at | +Padding (top/bottom) | +Fixed width | +Columns | +
|---|---|---|---|---|
| xs | +0px | +0px | +100% | +12 | +
| sm | +200px | +12px | +180px | +6 | +
| md | +400px | +28px | +360px | +4 | +
| lg | +600px | +48px | +560px | +3 | +
| xl | +800px | +72px | +760px | +2 | +
| xxl | +1000px | +100px | +960px | +1 | +