Skip to content

Commit 3ec8560

Browse files
committed
refactor(toast): use correct spacing
1 parent 70f92e0 commit 3ec8560

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

core/src/components/toast/toast.ionic.scss

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,27 @@
3232
z-index: 10;
3333
}
3434

35-
.toast-content {
35+
.toast-container {
3636
@include globals.padding(globals.$ionic-space-300, globals.$ionic-space-400);
3737
}
3838

3939
// Toast Button
4040
// --------------------------------------------------
4141

4242
.toast-layout-baseline .toast-button-group-start {
43-
@include globals.margin(null, null, null, globals.$ionic-space-400);
43+
@include globals.margin-horizontal(null, globals.$ionic-space-400);
4444
}
4545

4646
.toast-layout-stacked .toast-button-group-start {
47-
@include globals.margin(globals.$ionic-space-400, globals.$ionic-space-400, null, null);
47+
@include globals.margin(null, null, globals.$ionic-space-400, null);
4848
}
4949

5050
.toast-layout-baseline .toast-button-group-end {
51-
@include globals.margin(null, globals.$ionic-space-400, null, null);
51+
@include globals.margin-horizontal(globals.$ionic-space-400, null);
5252
}
5353

5454
.toast-layout-stacked .toast-button-group-end {
55-
@include globals.margin(null, globals.$ionic-space-400, globals.$ionic-space-400, null);
55+
@include globals.margin(globals.$ionic-space-400, null, null, null);
5656
}
5757

5858
.toast-button-group {
@@ -71,6 +71,13 @@
7171
overflow: hidden;
7272
}
7373

74+
// Toast Icon & Button Icon
75+
// --------------------------------------------------
76+
77+
.toast-icon {
78+
@include globals.margin-horizontal(0, globals.$ionic-space-200);
79+
}
80+
7481
// Toast Icon
7582
// --------------------------------------------------
7683

0 commit comments

Comments
 (0)