Skip to content

Commit f4e4813

Browse files
committed
feat(badge): make usage of the new tokens when inside tab button
1 parent 715bb99 commit f4e4813

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

core/src/components/badge/badge.common.scss

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@use "../../themes/ionic/ionic.globals.scss" as globals;
21
@use "../../themes/functions.color" as color;
32
@import "../../themes/mixins";
43
@import "./badge.common.vars";
@@ -68,22 +67,22 @@
6867
// Badge Inside Tab Button
6968
// --------------------------------------------------
7069

71-
:host([vertical].in-tab-button){
70+
:host([vertical].in-tab-button) {
7271
// TODO(ROU-10747/ROU-11666): Consider removing this property, by removing '@include position(null, 0, null, null);' from the badge-vertical-top and badge-vertical-bottom
7372
inset-inline-end: unset;
7473

7574
position: relative;
76-
77-
min-width: unset;
75+
76+
min-width: $badge-in-tab-button-min-width;
7877
}
7978

8079
:host([vertical].in-tab-button) ::slotted(ion-icon) {
8180
@include position($top: 50%, $start: 50%);
8281

8382
position: absolute;
84-
85-
width: globals.$ion-scale-300;
86-
height: globals.$ion-scale-300;
87-
83+
84+
width: $badge-in-tab-button-icon-size;
85+
height: $badge-in-tab-button-icon-size;
86+
8887
transform: translate(-50%, -50%);
89-
}
88+
}

0 commit comments

Comments
 (0)