Fixes icon button color in array item (#11588)

Removes specific styling for the icon button in array items
to inherit the correct color.

This ensures the button's icon color aligns with the theme.

Fixes AAE-41713
This commit is contained in:
Michaela
2026-01-27 13:34:05 +01:00
committed by GitHub
parent 1028df91da
commit 42c2f78baf
2 changed files with 10 additions and 18 deletions
@@ -53,13 +53,14 @@
<ng-template #elseEmptyValueBlock>
<span class="adf-card-array-item-default" data-automation-id="card-arrayitem-default">{{ property?.default | translate }}</span>
</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"
[attr.data-automation-id]="'card-array-item-clickable-icon-' + property.key">
<mat-icon class="adf-array-item-button-icon" [adf-icon]="property.icon" />
</button>
@if (showClickableIcon) {
<button mat-icon-button
(click)="clicked()"
(keydown.enter)="clicked()"
[attr.aria-label]="'CORE.METADATA.ACTIONS.EDIT' | translate"
[attr.title]="'CORE.METADATA.ACTIONS.EDIT' | translate"
[attr.data-automation-id]="'card-array-item-clickable-icon-' + property.key">
<mat-icon class="adf-array-item-button-icon" [adf-icon]="property.icon" />
</button>
}
</div>
@@ -5,15 +5,6 @@
margin-right: 5px;
}
&-array-item-action {
color: var(--adf-theme-foreground-text-color-025);
}
&-array-item-action:hover,
&-array-item-action:focus {
color: var(--adf-theme-foreground-text-color);
}
&-card-array-item-default {
overflow: hidden;
text-overflow: ellipsis;