Skip to content

Commit 715cc06

Browse files
authored
refactor(avatar): remove usage of :not() (#30229)
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. --> - Remove usage of :not() for the badge ionic sizes. ## 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. -->
1 parent 517d5b9 commit 715cc06

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,18 @@
156156
// Avatar Empty Badge (hint)
157157
// --------------------------------------------------
158158

159+
:host ::slotted(ion-badge.badge-vertical-top:empty) {
160+
transform: translate(globals.$ion-scale-050, calc(globals.$ion-scale-050 * -1));
161+
}
162+
159163
:host(.avatar-xxsmall) ::slotted(ion-badge.badge-vertical-top:empty) {
160164
transform: translate(globals.$ion-scale-100, calc(globals.$ion-scale-100 * -1));
161165
}
162166

163-
:host(:not(.avatar-xxsmall)) ::slotted(ion-badge.badge-vertical-top:empty) {
164-
transform: translate(globals.$ion-scale-050, calc(globals.$ion-scale-050 * -1));
167+
:host ::slotted(ion-badge.badge-vertical-bottom:empty) {
168+
transform: translate(0, globals.$ion-scale-100);
165169
}
166170

167171
:host(.avatar-xxsmall) ::slotted(ion-badge.badge-vertical-bottom:empty) {
168172
transform: translate(globals.$ion-scale-100, calc(globals.$ion-scale-100));
169173
}
170-
171-
:host(:not(.avatar-xxsmall)) ::slotted(ion-badge.badge-vertical-bottom:empty) {
172-
transform: translate(0, globals.$ion-scale-100);
173-
}

0 commit comments

Comments
 (0)