Skip to content

Commit 29571e0

Browse files
ehsan-2019wojd0
authored andcommitted
AAE-38957 Cleanup code from color assignments on Material elements (#11266)
1 parent 9b17f50 commit 29571e0

File tree

67 files changed

+58
-118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+58
-118
lines changed

lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
mat-icon-button
3737
[attr.title]="'CORE.METADATA.ACTIONS.SAVE' | translate"
3838
(click)="saveChanges($event)"
39-
color="primary"
4039
data-automation-id="save-general-info-metadata"
4140
[disabled]="!hasMetadataChanged || invalidProperties.size > 0">
4241
<mat-icon>check</mat-icon>
@@ -90,8 +89,7 @@
9089
mat-icon-button
9190
[attr.title]="'CORE.METADATA.ACTIONS.SAVE' | translate"
9291
(click)="saveChanges($event)"
93-
color="primary"
94-
data-automation-id="save-tags-metadata"
92+
data-automation-id="save-tags-metadata"
9593
[disabled]="!hasMetadataChanged">
9694
<mat-icon>check</mat-icon>
9795
</button>
@@ -153,8 +151,7 @@
153151
mat-icon-button
154152
[attr.title]="'CORE.METADATA.ACTIONS.SAVE' | translate"
155153
(click)="saveChanges($event)"
156-
color="primary"
157-
data-automation-id="save-categories-metadata"
154+
data-automation-id="save-categories-metadata"
158155
[disabled]="!hasMetadataChanged">
159156
<mat-icon>check</mat-icon>
160157
</button>
@@ -233,8 +230,7 @@
233230
mat-icon-button
234231
[attr.title]="'CORE.METADATA.ACTIONS.SAVE' | translate"
235232
(click)="saveChanges($event)"
236-
color="primary"
237-
data-automation-id="save-metadata"
233+
data-automation-id="save-metadata"
238234
[disabled]="!hasMetadataChanged || invalidProperties.size > 0">
239235
<mat-icon>check</mat-icon>
240236
</button>

lib/content-services/src/lib/content-node-share/content-node-share.dialog.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
<mat-slide-toggle
2121
#slideToggleExpirationDate
2222
[disabled]="!canUpdate"
23-
color="primary"
2423
data-automation-id="adf-expire-toggle"
2524
aria-label="{{ 'SHARE.EXPIRES' | translate }}"
2625
[checked]="!!time.value"
@@ -58,7 +57,6 @@
5857
<p class="adf-share-link__info adf-share-link__para">{{ 'SHARE.SHARE-LINK' | translate }}</p>
5958
<div class="adf-share-link--row adf-share-link--sharable-container">
6059
<mat-slide-toggle
61-
color="primary"
6260
data-automation-id="adf-share-toggle"
6361
class="adf-share-link--row__slide-toggle"
6462
aria-label="{{ 'SHARE.TITLE' | translate }}"
@@ -109,7 +107,7 @@
109107
<hr class="adf-share-link__separation-line" />
110108
</mat-dialog-content>
111109
<div class="adf-share-link__actions" mat-dialog-actions>
112-
<button data-automation-id="adf-share-dialog-close" mat-button color="primary" mat-dialog-close>
110+
<button data-automation-id="adf-share-dialog-close" mat-button mat-dialog-close>
113111
{{ 'SHARE.CLOSE' | translate }}
114112
</button>
115113
</div>

lib/content-services/src/lib/dialogs/category-selector/category-selector.dialog.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ <h1 mat-dialog-title>
1919
<button
2020
(click)="selectCategories()"
2121
[disabled]="!categories.length"
22-
color="primary"
2322
data-automation-id="category-selector-dialog-select-button"
2423
mat-button>
2524
{{ 'NODE_SELECTOR.CHOOSE' | translate }}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1 matDialogTitle>{{ 'CORE.DIALOG.DOWNLOAD_ZIP.TITLE' | translate }}</h1>
22
<div mat-dialog-content class="adf-dialog-content">
3-
<mat-progress-bar value="{{ percentageDone }}" color="primary" mode="determinate" />
3+
<mat-progress-bar value="{{ percentageDone }}" mode="determinate" />
44
<div class="adf-dialog-content-progress-text">
55
<span class="adf-dialog-content-progress-text-percentage">
66
{{ percentageDone }}%
@@ -9,7 +9,7 @@ <h1 matDialogTitle>{{ 'CORE.DIALOG.DOWNLOAD_ZIP.TITLE' | translate }}</h1>
99
</div>
1010
</div>
1111
<mat-dialog-actions align="end">
12-
<button class="adf-download-zip-dialog-button" mat-button color="primary" id="cancel-button" (click)="cancelDownload()">
12+
<button class="adf-download-zip-dialog-button" mat-button id="cancel-button" (click)="cancelDownload()">
1313
{{ 'CORE.DIALOG.DOWNLOAD_ZIP.ACTIONS.CANCEL' | translate }}
1414
</button>
1515
</mat-dialog-actions>

lib/content-services/src/lib/dialogs/library/library.dialog.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ <h2 mat-dialog-title>{{ createTitle | translate }}</h2>
6666
(change)="visibilityChangeHandler($event)"
6767
>
6868
<mat-radio-button
69-
color="primary"
7069
class="adf-library-dialog-radio-group-button"
7170
[disabled]="option.disabled"
7271
*ngFor="let option of visibilityOptions"
@@ -86,7 +85,6 @@ <h2 mat-dialog-title>{{ createTitle | translate }}</h2>
8685
</button>
8786

8887
<button
89-
color="primary"
9088
class="adf-action-button"
9189
mat-button
9290
(click)="submit()"

lib/content-services/src/lib/document-list/components/file-auto-download/file-auto-download.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ <h3>{{ 'ADF-DOCUMENT-LIST.FILE_AUTO_DOWNLOAD_DIALOG.HEADER' | translate }}</h3>
1616
mat-button
1717
mat-dialog-close
1818
id="downloadButton"
19-
color="primary"
2019
[attr.aria-label]="'ADF-DOCUMENT-LIST.FILE_AUTO_DOWNLOAD_DIALOG.ACTIONS.DOWNLOAD' | translate"
2120
[adfNodeDownload]="node">
2221
{{ 'ADF-DOCUMENT-LIST.FILE_AUTO_DOWNLOAD_DIALOG.ACTIONS.DOWNLOAD' | translate }}

lib/content-services/src/lib/new-version-uploader/new-version-uploader.dialog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ <h1 class="adf-new-version-uploader-dialog-title" mat-dialog-title data-automati
3030
</div>
3131
</section>
3232
<div class="adf-new-version-uploader-dialog-actions" mat-dialog-actions>
33-
<button mat-button color="primary" [mat-dialog-close]="true">{{ 'ADF-NEW-VERSION-UPLOADER.DIALOG_LIST.CLOSE' | translate }}</button>
33+
<button mat-button [mat-dialog-close]="true">{{ 'ADF-NEW-VERSION-UPLOADER.DIALOG_LIST.CLOSE' | translate }}</button>
3434
</div>
3535
</ng-container>

lib/content-services/src/lib/permission-manager/components/permission-list/permission-list.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<ng-container *ngIf="permissionList.error$ | async">
77
<div class="adf-no-permission__template" id="adf-permission-manager-error">
8-
<mat-icon color="warn">error</mat-icon>
8+
<mat-icon>error</mat-icon>
99
<p class="adf-no-permission__template--text">{{ 'PERMISSION_MANAGER.ERROR.NOT-FOUND'| translate }}</p>
1010
</div>
1111
</ng-container>
@@ -25,7 +25,6 @@ <h3 class="adf-inherit-container-header">
2525
*ngIf="updatePermissionsAllowed"
2626
class="adf-inherit-toggle"
2727
title="{{'PERMISSION_MANAGER.LABELS.INHERITED_PERMISSION_TOGGLE' | translate }}"
28-
color="primary"
2928
aria-label="{{'PERMISSION_MANAGER.LABELS.INHERITED_PERMISSION_TOGGLE' | translate}}"
3029
data-automation-id="adf-inherit-toggle-button"
3130
[checked]="model.node.permissions.isInheritanceEnabled"

lib/content-services/src/lib/search/components/search-check-list/search-check-list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</div>
1616

1717
<div class="adf-facet-buttons" *ngIf="options.fitsPage && !settings?.hideDefaultAction">
18-
<button mat-button color="primary" (click)="clear()">
18+
<button mat-button (click)="clear()">
1919
{{ 'SEARCH.FILTER.ACTIONS.CLEAR-ALL' | translate }}
2020
</button>
2121
</div>

lib/content-services/src/lib/search/components/search-chip-list/search-chip-list.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<ng-container *ngIf="facetFiltersService.selectedBuckets.length">
33
<mat-chip-option *ngIf="clearAll && facetFiltersService.selectedBuckets.length > 1"
44
data-automation-id="reset-filter"
5-
color="primary"
65
selected
76
class="adf-search-chip-list-item"
87
title="{{ 'SEARCH.FILTER.BUTTONS.CLEAR-ALL.TOOLTIP' | translate }}"

0 commit comments

Comments
 (0)