Skip to content

Commit

Permalink
Merge pull request #460 from PermanentOrg/fix-merge-error
Browse files Browse the repository at this point in the history
  • Loading branch information
crisnicandrei authored Sep 17, 2024
2 parents e58de3d + f3337f8 commit 5d29ba7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
>
<img *ngIf="icon" class="icon" src="{{ 'assets/svg/' + icon + '.svg' }}" />
<fa-icon class="icon" *ngIf="faIcon" [icon]="['fas', faIcon]"></fa-icon>
<p [style]="textColor" class="button-text"><ng-content></ng-content></p>
<p [style]="{ color: color }" class="button-text">
<ng-content></ng-content>
</p>
</button>
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class ButtonComponent {
@Input() faIcon: string = '';
@Input() buttonType: TYPE = 'button';
@Input() style = {};
@Input() color = '';

//Outputs
@Output() buttonClick = new EventEmitter<MouseEvent>();
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' : ''"
[style]="isSelected ? { color: '#32D583' } : {}"
[color]="isSelected ? '#32D583' : ''"
>
Accept
</pr-button>
Expand Down

0 comments on commit 5d29ba7

Please sign in to comment.