Skip to content

Commit eb05037

Browse files
committed
feat(plex-options): cambia button por plex-button
1 parent b4b553b commit eb05037

2 files changed

Lines changed: 21 additions & 15 deletions

File tree

src/lib/css/plex-options.scss

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
plex-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
}

src/lib/options/options.component.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff 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+
`})
2320
export class PlexOptionsComponent implements OnInit, OnChanges {
2421

2522
/**

0 commit comments

Comments
 (0)