File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11plex-options {
2- .options-container {
3- display : flex ;
4- }
5-
6- .option-grow {
2+ plex-button {
73 flex-grow : 1 ;
4+
5+ & .active {
6+ button {
7+ color : #fff ;
8+ background-color : #0082ad ;
9+ background-image : none ;
10+ border-color : #007aa3 ;
11+ }
12+ }
13+
14+ button {
15+ width : 100% ;
16+ }
817 }
918}
Original file line number Diff line number Diff line change @@ -9,17 +9,14 @@ export interface IPlexOptionsItems {
99@Component ( {
1010 selector : 'plex-options' ,
1111 template : `
12- <div class="row">
13- <div class="d-flex col flex-wrap">
14- <ng-container *ngFor="let item of items">
15- <button class="btn btn-primary btn-sm option-grow m-0" (click)="onOptionsClick(item)" [class.active]="active === item.key">
16- {{ item.label }}
17- </button>
18- </ng-container>
12+ <div class="row">
13+ <div class="d-flex col flex-wrap">
14+ <ng-container *ngFor="let item of items">
15+ <plex-button type="info" size="sm" label="{{ item.label }}" (click)="onOptionsClick(item)" [class.active]="active === item.key"></plex-button>
16+ </ng-container>
17+ </div>
1918 </div>
20- </div>
21- `
22- } )
19+ ` } )
2320export class PlexOptionsComponent implements OnInit , OnChanges {
2421
2522 /**
You can’t perform that action at this time.
0 commit comments