RED-4169 - updated icon button to display bold text
This commit is contained in:
parent
43a9067bf3
commit
9c7f6f2329
@ -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"
|
||||
|
||||
@ -14,6 +14,12 @@ button {
|
||||
}
|
||||
}
|
||||
|
||||
&.bold-text {
|
||||
span {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
@ -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`;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user