Skip to content

Commit 57974e8

Browse files
authored
fix(button): redundant margin in bootstrap theme (#13866)
1 parent fc09110 commit 57974e8

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

projects/igniteui-angular/src/lib/core/styles/components/button/_button-theme.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,12 +464,6 @@
464464
map.get($items-gap, 'comfortable')
465465
);
466466

467-
468-
@if ($variant == 'bootstrap') {
469-
// important is needed to override the typography margins
470-
margin: rem(4px) !important;
471-
}
472-
473467
igx-icon {
474468
--component-size: var(--ig-size, var(--ig-size-large));
475469
display: flex;

projects/igniteui-angular/src/lib/core/styles/components/grid/_excel-filtering-theme.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,11 @@
459459
margin-inline: pad-inline(rem(4px), rem(4px), rem(16px));
460460
margin-block-start: 0;
461461

462+
@if $bootstrap-theme {
463+
// important is needed to override the typography margins
464+
margin-block-end: rem(4px) !important;
465+
}
466+
462467
igx-icon {
463468
width: var(--igx-icon-size, #{rem(18px)});
464469
height: var(--igx-icon-size, #{rem(18px)});

projects/igniteui-angular/src/lib/core/styles/components/grid/_grid-theme.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,6 +2660,12 @@
26602660
[igxIconButton] {
26612661
--ig-size: 1;
26622662
}
2663+
2664+
@if ($variant == 'bootstrap') {
2665+
[igxButton] {
2666+
margin: rem(4px);
2667+
}
2668+
}
26632669
}
26642670

26652671
%igx-grid__filtering-dropdown-items {

0 commit comments

Comments
 (0)