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 <hi@ionicframework.com>
@@ -15,7 +15,7 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
background: globals.$ion-bg-neutral-subtlest-default;
|
||||
background: globals.$ion-bg-neutral-subtle-default;
|
||||
color: globals.$ion-text-subtlest;
|
||||
}
|
||||
|
||||
@@ -118,6 +118,11 @@
|
||||
@include globals.padding(0);
|
||||
}
|
||||
|
||||
:host(.avatar-xxsmall) ::slotted(ion-icon) {
|
||||
width: globals.$ion-scale-300;
|
||||
height: globals.$ion-scale-300;
|
||||
}
|
||||
|
||||
:host(.avatar-xsmall) ::slotted(ion-icon) {
|
||||
width: globals.$ion-scale-400;
|
||||
height: globals.$ion-scale-400;
|
||||
@@ -134,13 +139,13 @@
|
||||
}
|
||||
|
||||
:host(.avatar-large) ::slotted(ion-icon) {
|
||||
width: globals.$ion-scale-800;
|
||||
height: globals.$ion-scale-800;
|
||||
width: globals.$ion-scale-700;
|
||||
height: globals.$ion-scale-700;
|
||||
}
|
||||
|
||||
:host(.avatar-xlarge) ::slotted(ion-icon) {
|
||||
width: globals.$ion-scale-1000;
|
||||
height: globals.$ion-scale-1000;
|
||||
width: globals.$ion-scale-800;
|
||||
height: globals.$ion-scale-800;
|
||||
}
|
||||
|
||||
// Avatar Badge Empty (hint)
|
||||
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 864 B After Width: | Height: | Size: 975 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 649 B After Width: | Height: | Size: 708 B |