feat(thumbnail): add recipe and tokens#31166
Open
thetaPC wants to merge 6 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
thetaPC
commented
May 23, 2026
| 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" |
Contributor
Author
There was a problem hiding this comment.
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/.
thetaPC
commented
May 23, 2026
Comment on lines
+318
to
+319
| width: var(--ion-item-divider-thumbnail-width, revert-layer); | ||
| height: var(--ion-item-divider-thumbnail-height, revert-layer); |
Contributor
Author
There was a problem hiding this comment.
If these tokens are not set then default to the size that was set prior like the original --ion-thumbnail-width/--ion-thumbnail-height.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue number: resolves internal
What is the current behavior?
ion-thumbnailis already a single SCSS file (no per-theme fragmentation), but its styles are hardcoded rather than driven by the Modular Ionic token system. The TSX also still callsgetIonThemeand applies a theme class to the host even though all three themes render identically.In addition,
--sizecontrols both width and height with a single token, so non-square thumbnails are not possible without a separatewidth/heightoverride.What is the new behavior?
thumbnail.interfaces.tswith theIonThumbnailRecipetype.--sizeinto--width+--height: Non-square thumbnails are now possible.--size/--border-radiuswith the namespaced--ion-thumbnail-width,--ion-thumbnail-height, and--ion-thumbnail-border-radius.ion-item-divider,ion-item(ios + md theme files) now set--ion-thumbnail-widthand--ion-thumbnail-heightdirectly instead of--size.Does this introduce a breaking change?
This PR introduces breaking changes to how
ion-thumbnailis styled.Migration Path:
--sizeand--border-radiushave been removed. Use the new token structure:Code that previously relied on a single
--sizeoverride must now set both--ion-thumbnail-widthand--ion-thumbnail-height:If per-component customization is needed, the CSS variables can be used directly.
Note: slotted thumbnails inside
ion-itemandion-item-dividercontinue to render at their previous sizes — these components have been updated internally to set the new variables.ion-thumbnail.md,ion-thumbnail.ios.Other information
Preview: