File tree Expand file tree Collapse file tree 4 files changed +22
-10
lines changed
projects/igniteui-angular/src/lib
core/styles/components/button-group Expand file tree Collapse file tree 4 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 11
11
[igxLabel] ="button.label "
12
12
[igxRipple] ="button.ripple "
13
13
>
14
- < div class ="igx-button-group__item-content {{ itemContentCssClass }} ">
14
+ < span class ="igx-button-group__item-content {{ itemContentCssClass }} ">
15
15
< igx-icon *ngIf ="button.icon " fontSet ="material "> {{button.icon}}</ igx-icon >
16
- < span *ngIf ="button.label "> {{button.label}}</ span >
17
- </ div >
16
+ < span class =" igx-button-group__button-text " *ngIf ="button.label "> {{button.label}}</ span >
17
+ </ span >
18
18
</ button >
19
19
< ng-content > </ ng-content >
20
20
</ div >
Original file line number Diff line number Diff line change 15
15
@extend %igx-group-item !optional ;
16
16
}
17
17
18
+ @include e (button- text) {
19
+ @extend %igx-button-group__button-text !optional ;
20
+ }
21
+
18
22
@include e (item, $m : selected) {
19
23
@extend %igx-group-item !optional ;
20
24
@extend %igx-group-item-selected !optional ;
Original file line number Diff line number Diff line change 185
185
display : flex ;
186
186
box-shadow : --var ($theme , ' shadow' );
187
187
transition : $transition ;
188
- border-radius : --var ($theme , ' border-radius' )
188
+ border-radius : --var ($theme , ' border-radius' );
189
189
}
190
190
191
191
%igx-group-item {
192
- @include ellipsis ();
193
192
border : $group-item-border-thickness solid --var ($theme , ' item-border-color' );
194
193
color : --var ($theme , ' item-text-color' );
195
194
background : --var ($theme , ' item-background' );
307
306
%igx-group-item-content {
308
307
display : flex ;
309
308
flex-flow : row nowrap ;
310
- justify-content : center ;
311
- align-items : center ;
312
- text-align : center ;
309
+ min-width : 0 ;
313
310
314
311
* ~ * {
315
312
margin- #{$left } : $group-items-margin ;
316
313
}
317
314
}
315
+
316
+ %igx-button-group__button-text {
317
+ width : 100% ;
318
+ @include ellipsis ();
319
+ }
318
320
}
319
321
Original file line number Diff line number Diff line change @@ -46,8 +46,14 @@ <h4 class="sample-title">Custom class to style the content</h4>
46
46
< article class ="sample-column ">
47
47
< h4 class ="sample-title "> Templated buttons.</ h4 >
48
48
< igx-buttongroup [multiSelection] ="false ">
49
- < button igxButton > < igx-icon > alarm_on</ igx-icon > Button 1 text</ button >
50
- < button igxButton > < igx-icon > autorenew</ igx-icon > Button 2 text</ button >
49
+ < button igxButton >
50
+ < igx-icon > alarm_on</ igx-icon >
51
+ Button 1 text
52
+ </ button >
53
+ < button igxButton >
54
+ < igx-icon > autorenew</ igx-icon >
55
+ Button 2 text<
56
+ </ button >
51
57
</ igx-buttongroup >
52
58
</ article >
53
59
You can’t perform that action at this time.
0 commit comments