added grey background option when selected
This commit is contained in:
parent
f97305cab6
commit
e14472a48a
@ -100,7 +100,7 @@ iqser-icon-button {
|
||||
background: var(--iqser-primary-2);
|
||||
}
|
||||
|
||||
&.dossierView {
|
||||
&.grey-selected {
|
||||
background-color: var(--iqser-btn-bg);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -3,7 +3,6 @@ export const CircleButtonTypes = {
|
||||
primary: 'primary',
|
||||
warn: 'warn',
|
||||
dark: 'dark',
|
||||
dossierView: 'dossierView',
|
||||
} as const;
|
||||
|
||||
export type CircleButtonType = keyof typeof CircleButtonTypes;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user