Skip to content

Commit e934b46

Browse files
committed
feat(action-strip): use new spacing() function for margin and paddings.
Closes #11368
1 parent 9828d0d commit e934b46

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

projects/igniteui-angular/src/lib/core/styles/components/action-strip/_action-strip-theme.scss

+8-7
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,16 @@
6565

6666
/// @param {Map} $theme - The theme used to style the component.
6767
/// @requires {mixin} css-vars
68+
/// @requires spacing
6869
/// @requires rem
6970
/// @requires var-get
7071
@mixin action-strip($theme) {
7172
@include css-vars($theme);
7273

7374
$padding: (
74-
comfortable: 0 rem(24px),
75-
cosy: 0 rem(16px),
76-
compact: 0 rem(12px)
75+
comfortable: 0 spacing(24px, 'comfortable'),
76+
cosy: 0 spacing(16px, 'cosy'),
77+
compact: 0 spacing(12px, 'compact')
7778
);
7879

7980
$variant: map.get($theme, variant);
@@ -136,18 +137,18 @@
136137
}
137138

138139
igx-icon + [igxLabel] {
139-
margin-inline-start: rem(12px);
140+
margin-inline-start: spacing(12px);
140141
}
141142

142143
&%igx-drop-down__item--cosy {
143144
igx-icon + [igxLabel] {
144-
margin-inline-start: rem(10px);
145+
margin-inline-start: spacing(10px);
145146
}
146147
}
147148

148149
&%igx-drop-down__item--compact {
149150
igx-icon + [igxLabel] {
150-
margin-inline-start: rem(8px);
151+
margin-inline-start: spacing(8px);
151152
}
152153
}
153154
}
@@ -197,7 +198,7 @@
197198

198199
%igx-action-strip__editing-actions {
199200
> [igxButton] {
200-
margin-inline-start: rem(4px);
201+
margin-inline-start: spacing(4px);
201202

202203
&:first-of-type {
203204
margin-inline-start: 0;

0 commit comments

Comments
 (0)