mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fixed SonarCloud complaints
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
<ng-container *ngIf="displayCount > 0; else withOutDisplayCount" >
|
||||
<mat-chip-option
|
||||
*ngFor="let item of items.slice(0, displayCount)"
|
||||
(keyup.enter)="clicked()"
|
||||
(click)="clicked()"
|
||||
[attr.data-automation-id]="'card-arrayitem-chip-' + item.value">
|
||||
<mat-icon *ngIf="item?.icon" class="adf-array-item-icon">{{item.icon}}</mat-icon>
|
||||
@@ -20,6 +21,7 @@
|
||||
<ng-template #withOutDisplayCount>
|
||||
<mat-chip-option
|
||||
*ngFor="let item of items"
|
||||
(keyup.enter)="clicked()"
|
||||
(click)="clicked()"
|
||||
[attr.data-automation-id]="'card-arrayitem-chip-' + item.value">
|
||||
<mat-icon *ngIf="item?.icon" class="adf-array-item-icon">{{item.icon}}</mat-icon>
|
||||
@@ -31,7 +33,7 @@
|
||||
<mat-card appearance="outlined" class="adf-array-item-more-chip-container">
|
||||
<mat-card-content>
|
||||
<mat-chip-listbox>
|
||||
<mat-chip-option (click)="clicked()"
|
||||
<mat-chip-option (click)="clicked()" (keyup.enter)="clicked()"
|
||||
*ngFor="let item of items.slice(displayCount, items.length)"
|
||||
[attr.data-automation-id]="'card-arrayitem-chip-' + item.value">
|
||||
<mat-icon *ngIf="item?.icon" class="adf-array-item-icon">{{item.icon}}</mat-icon>
|
||||
@@ -47,6 +49,7 @@
|
||||
</ng-template>
|
||||
<button mat-icon-button *ngIf="showClickableIcon"
|
||||
(click)="clicked()"
|
||||
(keydown.enter)="clicked()"
|
||||
class="adf-array-item-action"
|
||||
[attr.aria-label]="'CORE.METADATA.ACTIONS.EDIT' | translate"
|
||||
[attr.title]="'CORE.METADATA.ACTIONS.EDIT' | translate"
|
||||
|
@@ -17,7 +17,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
.adf-container-widget__header-text, .adf-label {
|
||||
.adf-container-widget__header-text,
|
||||
.adf-label {
|
||||
font-family: var(--theme-font-family);
|
||||
color: var(--theme-primary-color);
|
||||
}
|
||||
@@ -89,19 +90,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
#{$mat-form-field} {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
mat-form-field {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#{mat-input-placeholder} {
|
||||
top: 1.8em !important;
|
||||
top: 1.8em;
|
||||
}
|
||||
|
||||
#{$mat-form-field} {
|
||||
width: 100%;
|
||||
|
||||
label {
|
||||
transform: scaleX(1);
|
||||
transition: transform 150ms linear;
|
||||
@@ -135,7 +130,7 @@
|
||||
}
|
||||
|
||||
& #{$mat-card-header-text} {
|
||||
margin: 0 !important;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
& #{$mat-tab-body-content} {
|
||||
|
Reference in New Issue
Block a user