Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

rugoncalves
Copy link

@rugoncalves rugoncalves commented Aug 28, 2025

What is the current behavior?

The existing grid component (ion-grid, ion-row, and ion-col) in Ionic was developed several years ago and has not received significant updates since then. As a result, it does not leverage modern CSS features. For example, the gutter (spacing) between columns is implemented using the border property, which is an outdated technique.

What is the new behavior?

  • --ion-grid-gap: this new CSS variable, will indicate the gap size in the grid. Defaults to 0px - the current value.
  • ion-col: has a new way to calculate the width of the column. Additionally a new property order (and responsive variants) was added, and will control the order of the column.
  • ion-row: uses the newly introduced custom property --ion-grid-gap. This property will indicate the gap size in the grid.

Does this introduce a breaking change?

  • Yes
  • No

The properties pull and push from ion-col, have been removed. The functionality achieved with them, is now achieved with the new property order and the existing size. More information and migration examples can be read in BREAKING.md file.

Other information

@rugoncalves rugoncalves requested a review from a team as a code owner August 28, 2025 11:04
Copy link

vercel bot commented Aug 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ionic-framework Ready Ready Preview Comment Sep 15, 2025 3:27pm

@github-actions github-actions bot added package: core @ionic/core package package: angular @ionic/angular package package: vue @ionic/vue package labels Aug 28, 2025
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ShaneK I see differences in the offset part, but the original, looks incorrect how it was working... but not 100% sure.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I agree. I'm not sure why the original was like that, I don't see any reasoning for it in the code. May be missing something, but I think it's fine for now

Copy link
Member

@ShaneK ShaneK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! 🎉

@rugoncalves rugoncalves merged commit 3cc0353 into next Sep 17, 2025
49 checks passed
@rugoncalves rugoncalves deleted the ROU-11882 branch September 17, 2025 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: angular @ionic/angular package package: core @ionic/core package package: vue @ionic/vue package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants