Skip to content

Commit

Permalink
added input to the buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
crisnicandrei committed Sep 17, 2024
1 parent 11f79b0 commit 1b81675
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
]"
[disabled]="disabled"
(click)="onClick($event)"
[style]="style"
>
<img *ngIf="icon" class="icon" src="{{ 'assets/svg/' + icon + '.svg' }}" />
<fa-icon class="icon" *ngIf="faIcon" [icon]="['fas', faIcon]"></fa-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class ButtonComponent {
@Input() orientation: ORIENTATION = 'left';
@Input() faIcon: string = '';
@Input() buttonType: TYPE = 'button';
@Input() textColor: { color: string };
@Input() style = {};

//Outputs
@Output() buttonClick = new EventEmitter<MouseEvent>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
(buttonClick)="backToCreate()"
[icon]="'/onboarding/back'"
[size]="'fill'"
[style]="{ justifyContent: 'center' }"
class="back-button"
>Back</pr-button
>
Expand All @@ -45,6 +46,7 @@
(buttonClick)="createArchive()"
[size]="'fill'"
class="create-archive-button"
[style]="{ justifyContent: 'center' }"
>Next</pr-button
>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
[mode]="isSelected ? 'dark' : 'light'"
[orientation]="'right'"
[icon]="isSelected ? '/accept-green' : ''"
[textColor]="isSelected ? { color: '#32D583' } : {}"
[style]="isSelected ? { color: '#32D583' } : {}"
>
Accept
</pr-button>
Expand Down

0 comments on commit 1b81675

Please sign in to comment.