Skip to content

Commit fe964c8

Browse files
BenOsodracIonitron
andauthored
fix(avatar): fix avatar tokens on ionic theme (#30438)
Issue number: internal --------- <!-- 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 new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Review background color token and xxsmall size ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer for more information. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. --> [Avatar ionic theme](https://ionic-framework-git-rou-11968-avatar-ionic1.vercel.app/src/components/avatar/test/size?ionic:theme=ionic) --------- Co-authored-by: ionitron <[email protected]>
1 parent 034d047 commit fe964c8

9 files changed

+10
-5
lines changed

core/src/components/avatar/avatar.ionic.scss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
align-items: center;
1616
justify-content: center;
1717

18-
background: globals.$ion-bg-neutral-subtlest-default;
18+
background: globals.$ion-bg-neutral-subtle-default;
1919
color: globals.$ion-text-subtlest;
2020
}
2121

@@ -118,6 +118,11 @@
118118
@include globals.padding(0);
119119
}
120120

121+
:host(.avatar-xxsmall) ::slotted(ion-icon) {
122+
width: globals.$ion-scale-300;
123+
height: globals.$ion-scale-300;
124+
}
125+
121126
:host(.avatar-xsmall) ::slotted(ion-icon) {
122127
width: globals.$ion-scale-400;
123128
height: globals.$ion-scale-400;
@@ -134,13 +139,13 @@
134139
}
135140

136141
:host(.avatar-large) ::slotted(ion-icon) {
137-
width: globals.$ion-scale-800;
138-
height: globals.$ion-scale-800;
142+
width: globals.$ion-scale-700;
143+
height: globals.$ion-scale-700;
139144
}
140145

141146
:host(.avatar-xlarge) ::slotted(ion-icon) {
142-
width: globals.$ion-scale-1000;
143-
height: globals.$ion-scale-1000;
147+
width: globals.$ion-scale-800;
148+
height: globals.$ion-scale-800;
144149
}
145150

146151
// Avatar Badge Empty (hint)

0 commit comments

Comments
 (0)