File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ $mat-card-header-size: 40px !default;
43
43
margin-left : -16px ;
44
44
margin-right : -16px ;
45
45
padding : 8px 0 ;
46
+ }
46
47
47
- & [align = ' end' ] {
48
- display : flex ;
49
- justify-content : flex-end ;
50
- }
48
+ .mat-card-actions-align-end {
49
+ display : flex ;
50
+ justify-content : flex-end ;
51
51
}
52
52
53
53
.mat-card-image {
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ import {
10
10
Component ,
11
11
ViewEncapsulation ,
12
12
ChangeDetectionStrategy ,
13
- Directive
13
+ Directive ,
14
+ Input ,
14
15
} from '@angular/core' ;
15
16
16
17
@@ -56,9 +57,15 @@ export class MdCardSubtitle {}
56
57
*/
57
58
@Directive ( {
58
59
selector : 'md-card-actions, mat-card-actions' ,
59
- host : { 'class' : 'mat-card-actions' }
60
+ host : {
61
+ 'class' : 'mat-card-actions' ,
62
+ '[class.mat-card-actions-align-end]' : 'align === "end"' ,
63
+ }
60
64
} )
61
- export class MdCardActions { }
65
+ export class MdCardActions {
66
+ /** Position of the actions inside the card. */
67
+ @Input ( ) align : 'start' | 'end' = 'start' ;
68
+ }
62
69
63
70
/**
64
71
* Footer of a card, needed as it's used as a selector in the API.
You can’t perform that action at this time.
0 commit comments