Skip to content

Commit 22245cc

Browse files
committed
feat(button): add extended button solution for span
1 parent 34d1406 commit 22245cc

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

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

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -514,15 +514,15 @@
514514

515515

516516
$button-floating-padding: (
517-
comfortable: rem(15px),
518-
cosy: rem(11px),
519-
compact: rem(7px)
517+
comfortable: rem(8px) rem(20px) rem(8px) rem(12px),
518+
cosy: rem(4px) rem(16px) rem(4px) rem(8px),
519+
compact: 0 rem(12px) 0 rem(4px)
520520
);
521521

522522
$button-floating-size: (
523-
comfortable: rem(56px),
524-
cosy: rem(48px),
525-
compact: rem(40px)
523+
comfortable: rem(48px),
524+
cosy: rem(40px),
525+
compact: rem(32px)
526526
);
527527

528528
$icon-in-button-size: rem(18px);
@@ -762,6 +762,18 @@
762762
background: --var($theme, 'fab-focus-background');
763763
box-shadow: $fab-shadow--focus;
764764
}
765+
766+
igx-icon {
767+
display: inline-flex;
768+
order: -1;
769+
margin: 7px 0;
770+
padding-left: 4px;
771+
}
772+
773+
* + igx-icon {
774+
margin: 0;
775+
margin-right: 12px;
776+
}
765777
}
766778

767779
%igx-button--fab-cosy {
@@ -849,4 +861,10 @@
849861
text-align: center;
850862
}
851863
}
864+
865+
%igx-button--fab {
866+
@include igx-type-style($type-scale, $text) {
867+
text-align: center;
868+
}
869+
}
852870
}

0 commit comments

Comments
 (0)