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.
-->
This commit is contained in:
Bernardo Cardoso
2025-03-03 21:04:58 +00:00
committed by GitHub
parent 517d5b99b2
commit 715cc06c5f

View File

@@ -156,18 +156,18 @@
// Avatar Empty Badge (hint)
// --------------------------------------------------
:host ::slotted(ion-badge.badge-vertical-top:empty) {
transform: translate(globals.$ion-scale-050, calc(globals.$ion-scale-050 * -1));
}
:host(.avatar-xxsmall) ::slotted(ion-badge.badge-vertical-top:empty) {
transform: translate(globals.$ion-scale-100, calc(globals.$ion-scale-100 * -1));
}
:host(:not(.avatar-xxsmall)) ::slotted(ion-badge.badge-vertical-top:empty) {
transform: translate(globals.$ion-scale-050, calc(globals.$ion-scale-050 * -1));
:host ::slotted(ion-badge.badge-vertical-bottom:empty) {
transform: translate(0, globals.$ion-scale-100);
}
:host(.avatar-xxsmall) ::slotted(ion-badge.badge-vertical-bottom:empty) {
transform: translate(globals.$ion-scale-100, calc(globals.$ion-scale-100));
}
:host(:not(.avatar-xxsmall)) ::slotted(ion-badge.badge-vertical-bottom:empty) {
transform: translate(0, globals.$ion-scale-100);
}