Skip to content

Commit bdb38be

Browse files
committed
fix(segment-button): move indicator over border
1 parent 4145be4 commit bdb38be

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

core/src/components/segment-button/segment-button.ionic.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@use "../../themes/ionic/ionic.globals.scss" as globals;
2-
@import "./segment-button.common";
2+
@use "./segment-button.common";
33

44
// Ionic Segment Button
55
// --------------------------------------------------
@@ -23,12 +23,19 @@
2323

2424
min-width: globals.$ionic-scale-1200;
2525
min-height: globals.$ionic-scale-1200;
26+
}
2627

28+
.button-native {
2729
border-bottom: globals.$ionic-border-size-025 globals.$ionic-border-style-solid globals.$ionic-color-neutral-300;
2830
}
2931

3032
.button-inner {
31-
@include padding(globals.$ionic-space-100, globals.$ionic-space-0, globals.$ionic-space-100, globals.$ionic-space-0);
33+
@include globals.padding(
34+
globals.$ionic-space-100,
35+
globals.$ionic-space-0,
36+
globals.$ionic-space-100,
37+
globals.$ionic-space-0
38+
);
3239

3340
gap: globals.$ionic-space-100;
3441
}
@@ -72,5 +79,7 @@
7279
// --------------------------------------------------
7380

7481
.segment-button-indicator {
75-
@include position(null, 0, 0, 0);
82+
@include globals.position(null, 0, 0, 0);
83+
84+
z-index: 2;
7685
}

0 commit comments

Comments
 (0)