RED-4169 - updated icon button to display bold text

This commit is contained in:
Valentin Mihai 2022-06-09 13:53:11 +03:00
parent 43a9067bf3
commit 9c7f6f2329
3 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,7 @@
[class.primary]="type === iconButtonTypes.primary"
[class.show-bg]="type === iconButtonTypes.dark"
[class.help]="type === iconButtonTypes.help"
[class.bold-text]="boldText"
[disabled]="disabled"
mat-button
type="button"

View File

@ -14,6 +14,12 @@ button {
}
}
&.bold-text {
span {
font-weight: bold;
}
}
mat-icon {
width: 14px;
}

View File

@ -16,10 +16,11 @@ export class IconButtonComponent {
@Input() icon?: string;
@Input() showDot = false;
@Input() disabled = false;
@Input() boldText = false;
@Input() type: IconButtonType = IconButtonTypes.default;
@Output() readonly action = new EventEmitter<MouseEvent>();
get buttonId (): String {
get buttonId(): string {
return `${Math.random().toString(36).substring(2, 9)}-button`;
}
}