Skip to content

feat(img): add recipe and tokens#31167

Draft
thetaPC wants to merge 2 commits into
ionic-modularfrom
FW-6845
Draft

feat(img): add recipe and tokens#31167
thetaPC wants to merge 2 commits into
ionic-modularfrom
FW-6845

Conversation

@thetaPC
Copy link
Copy Markdown
Contributor

@thetaPC thetaPC commented May 23, 2026

Issue number: resolves internal


What is the current behavior?

ion-img reads the active theme via getIonTheme() and applies it as a host class even though no SCSS rule depends on the theme class. The @virtualProp theme is also exposed publicly.

What is the new behavior?

  • Removed theme classes: Thumbnails won't render with a theme defined as a class.

Does this introduce a breaking change?

  • Yes
  • No

This PR introduces breaking changes to how ion-thumbnail is styled.

Migration Path:

  1. Theme classes: Remove any instances that target the theme classes: ion-img.md, ion-img.ios.

Other information

Previews

  • Image: basic

@vercel
Copy link
Copy Markdown

vercel Bot commented May 23, 2026

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

Project Deployment Actions Updated (UTC)
ionic-framework Ready Ready Preview, Comment May 23, 2026 3:09am

Request Review

cp -r "${CORE_DIR}/src" "${OUTPUT_DIR}/src"
cp -r "${CORE_DIR}/dist" "${OUTPUT_DIR}/dist"
cp -r "${CORE_DIR}/css" "${OUTPUT_DIR}/css"
cp -r "${CORE_DIR}/themes" "${OUTPUT_DIR}/themes"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The themes/ directory (generated by npm run build.themes and dynamically imported by scripts.js at runtime as /themes/{theme}/default.tokens.js) wasn't being copied into the Vercel output, so the token modules 404'd in deployed previews while working fine locally where the dev server serves it from core/.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant