Skip to content

Commit 6837e3e

Browse files
CR
1 parent 3d7ec25 commit 6837e3e

File tree

35 files changed

+13
-13
lines changed

35 files changed

+13
-13
lines changed

core/src/components/badge/badge.ionic.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@use "../../themes/ionic/ionic.globals.scss" as globals;
22
@use "./badge.common";
3-
@import "../../themes/mixins";
43

54
// Ionic Badge
65
// --------------------------------------------------
@@ -198,11 +197,11 @@
198197
:host([vertical]:not(.in-tab-button).in-button.badge-xxsmall),
199198
:host([vertical]:not(.in-tab-button).in-button.badge-xsmall),
200199
:host([vertical]:not(.in-tab-button).in-button.badge-small) {
201-
@include position(null, calc(-1 * var(globals.$ion-space-050)), null, null);
200+
@include globals.position(null, calc(-1 * var(globals.$ion-space-050)));
202201
}
203202

204203
:host([vertical]:not(.in-tab-button).in-button.badge-medium),
205204
:host([vertical]:not(.in-tab-button).in-button.badge-large),
206205
:host([vertical]:not(.in-tab-button).in-button.badge-xlarge) {
207-
@include position(null, globals.$ion-space-050, null, null);
206+
@include globals.position(null, globals.$ion-space-050);
208207
}

core/src/components/button/button.common.scss

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -311,18 +311,19 @@ ion-ripple-effect {
311311
// Button Badge
312312
// --------------------------------------------------
313313

314-
.button-native {
315-
overflow: visible;
314+
.button-native ion-ripple-effect,
315+
.button-native::after {
316+
@include border-radius(inherit);
317+
}
316318

317-
ion-ripple-effect {
318-
// stylelint-disable-next-line property-disallowed-list
319-
border-radius: inherit;
320-
}
319+
// This rule works for Chrome.
320+
:has(ion-badge) .button-native {
321+
--overflow: visible;
322+
}
321323

322-
&::after {
323-
// stylelint-disable-next-line property-disallowed-list
324-
border-radius: inherit;
325-
}
324+
// This rule works for the rest of the browsers.
325+
:host(:has(ion-badge)) .button-native {
326+
--overflow: visible;
326327
}
327328

328329
:host ::slotted(ion-badge[vertical]:not(:empty)) {
-25 Bytes
Loading
-18 Bytes
Loading
-440 Bytes
Loading
-511 Bytes
Loading
272 Bytes
Loading
-3.06 KB
Loading
100 Bytes
Loading
-2.87 KB
Loading

0 commit comments

Comments
 (0)