added grey background option when selected

This commit is contained in:
Edi Cziszter 2021-11-16 18:18:55 +02:00 committed by Edi Cziszter
parent f97305cab6
commit e14472a48a
4 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ iqser-icon-button {
background: var(--iqser-primary-2);
}
&.dossierView {
&.grey-selected {
background-color: var(--iqser-btn-bg);
}
}

View File

@ -2,10 +2,10 @@
<button
(click)="performAction($event)"
[class.dark-bg]="type === circleButtonTypes.dark"
[class.dossierView]="type === circleButtonTypes.dossierView"
[class.overlay]="showDot"
[class.primary]="type === circleButtonTypes.primary"
[class.warn]="type === circleButtonTypes.warn"
[class.grey-selected]="greySelected"
[disabled]="disabled"
[type]="isSubmit ? 'submit' : 'button'"
mat-icon-button

View File

@ -19,6 +19,7 @@ export class CircleButtonComponent implements OnInit {
@Input() tooltipPosition: IqserTooltipPosition = IqserTooltipPositions.above;
@Input() disabled = false;
@Input() type: CircleButtonType = CircleButtonTypes.default;
@Input() greySelected = false;
@Input() removeTooltip = false;
@Input() isSubmit = false;
@Input() size = 34;

View File

@ -3,7 +3,6 @@ export const CircleButtonTypes = {
primary: 'primary',
warn: 'warn',
dark: 'dark',
dossierView: 'dossierView',
} as const;
export type CircleButtonType = keyof typeof CircleButtonTypes;