Repository navigation
Conversation
thetaPC
added this pull request to stack #31538
October 6, 2026 22:14
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
thetaPC
commented
Oct 6, 2026
Contributor
Author
There was a problem hiding this comment.
The title in this snapshot now follows the page's md theme instead of the header's mode="ios", since migrated components take their look from the theme and mode only affects behavior; the header itself is still visible, which is what the test checks.
This branch was successfully deployed
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-titledoes not fragment styles based on themes.What is the new behavior?
ion-titleto Modular Ionic: one token-driven stylesheet,IonTitleRecipeandIonTitleConfig, and per-theme token defaults for ios, md and ionic.hueprop (boldby default, orsubtle). The ionic theme now appliescolor, matching ios and md.sizeacceptsmedium, which is the default from the newIonTitle.sizeconfig. The header's condense effect also reads that config, so a title made large through it condenses. Size classes are nowtitle-size-small,title-size-mediumandtitle-size-large, and toolbar's matching classes aretoolbar-title-size-*.--colorwith--ion-title-color, which also reaches the copy of a large title shown during the iOS page transition.getIonThemeand thethemevirtual prop) and thetitle-rtlclass.title-largeorder value. The rule's selector can't reach the slotted title, so it never applied, and the title already computesorder: 0. Rendering doesn't change.dynamicFontMaxtoken helper, and rounds scaled sizes indynamicFontMinanddynamicFontMax.title-colorscreenshots now show colored titles. In header's "root iOS header in an MD app" screenshot, the title follows the page's theme: an ancestormodeattribute now only affects behavior, as it already does for every migrated component.Does this introduce a breaking change?
ion-titleCSS variables and classes are replaced by token-driven custom properties and prop-named classes. Use the global token for theme-wide styling, or the CSS variable for component-specific overrides.--colorIonTitle.color--ion-title-colortitle-defaulttitle-size-mediumtitle-smalltitle-size-smalltitle-largetitle-size-largetoolbar-title-defaulttoolbar-title-size-mediumtoolbar-title-smalltoolbar-title-size-smalltoolbar-title-largetoolbar-title-size-largeRTL class:
title-rtlis removed. Useion-title:dir(rtl)instead.Theme classes: remove any instances that target
ion-title.mdorion-title.ios.Other information
Left for the parents
Some
ion-titlestyles still live in, or depend on, its parents. They move with that parent's work, so they aren't part of this PR.titlePlacement: thetext-alignrules intoolbar.ionic.scss, and the iOS title's own centering intitle.scss(marked with TODOs). A follow-up PR stacked on this one makestitlePlacementwork in every theme and removes both.header.common.scssthat hide and fade the title as the large title collapses. They depend on the header's scroll state and include its condense motion, so they move in the header migration (FW-6843).How to test
Open each before and after link side by side.