mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
fix(title): large title uses custom font on transition (#28231)
Issue number: N/A --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> When testing Dynamic Font Scaling with a custom font I noticed that the large title does not respect `--ion-font-family` on transition. ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - The cloned large title now respect `--ion-font-family` Note: This happens in `main` too which is why I am merging into there instead of the Dynamic Font Scaling branch. | `main` | branch | | - | - | |  |  | ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
This commit is contained in:
@ -61,6 +61,7 @@
|
|||||||
|
|
||||||
:host(.title-large.ion-cloned-element) {
|
:host(.title-large.ion-cloned-element) {
|
||||||
--color: #{$text-color};
|
--color: #{$text-color};
|
||||||
|
font-family: var(--ion-font-family);
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(.title-large) .toolbar-title {
|
:host(.title-large) .toolbar-title {
|
||||||
|
|||||||
Reference in New Issue
Block a user