Skip to content

feat(gallery): support CSS variables being passed to gap#31186

Merged
brandyscarney merged 4 commits into
nextfrom
FW-7299
Jun 4, 2026
Merged

feat(gallery): support CSS variables being passed to gap#31186
brandyscarney merged 4 commits into
nextfrom
FW-7299

Conversation

@brandyscarney
Copy link
Copy Markdown
Member

Issue number: internal


What is the current behavior?

The Gallery component currently only supports CSS length strings and numbers being passed to gap.

What is the new behavior?

  • Adds support for CSS variables being passed to gap as a string.
  • Adds spec & e2e tests verifying the behavior.

Does this introduce a breaking change?

  • Yes
  • No

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

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

Project Deployment Actions Updated (UTC)
ionic-framework Ready Ready Preview, Comment Jun 4, 2026 6:26pm

Request Review

@github-actions github-actions Bot added the package: core @ionic/core package label Jun 2, 2026
@brandyscarney brandyscarney marked this pull request as ready for review June 3, 2026 14:06
@brandyscarney brandyscarney requested a review from a team as a code owner June 3, 2026 14:06
@brandyscarney brandyscarney requested a review from ShaneK June 3, 2026 14:06
Copy link
Copy Markdown
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.

Looks good to me, awesome work 🚀

Copy link
Copy Markdown
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

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

LGTM, with a minor suggestion

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A test to verify that the fallback is used when the CSS variable is empty would be beneficial. Not sure if we need to add it to layout/gallery.e2e.ts.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@brandyscarney brandyscarney merged commit e0fbf94 into next Jun 4, 2026
49 checks passed
@brandyscarney brandyscarney deleted the FW-7299 branch June 4, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants