Skip to content

Commit

Permalink
[ACS-6140] - Remove references to internal Angular Material CSS classes
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikiwanekhyland committed Feb 9, 2024
1 parent e4dade1 commit 4a5cc24
Show file tree
Hide file tree
Showing 19 changed files with 44 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"alpha-value-notation": "number",
"function-name-case": "lower",
"selector-class-pattern": [
"^_?(adf|adf-|aca-|app|app-|cdk-||mat-|material-)",
"^_?(adf|adf-|aca-|app|app-)",
{
"resolveNestedSelectors": true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ <h2 class="aca-page-title">{{ (folderInfo$ | async).name }}:{{'ACA_FOLDER_RULES.
<aca-rule-details
[actionDefinitions]="actionDefinitions$ | async"
[parameterConstraints]="parameterConstraints$ | async"
[readOnly]="true"
[preview]="true"
[value]="selectedRule"
[nodeId]="nodeId">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</mat-select>
</mat-form-field>

<mat-form-field class="aca-rule-simple-condition__form__comparator-input" [class]="{ 'aca-hidden': isComparatorHidden }" data-automation-id="comparator-form-field">
<mat-form-field class="aca-rule-simple-condition__form__field-input aca-rule-simple-condition__form__comparator-input" [class]="{ 'aca-hidden': isComparatorHidden }" data-automation-id="comparator-form-field">
<mat-select formControlName="comparator" data-automation-id="comparator-select">
<mat-option
*ngFor="let comparator of selectedFieldComparators"
Expand All @@ -21,7 +21,7 @@
</mat-select>
</mat-form-field>

<mat-form-field class="aca-rule-simple-condition__form__parameter-input" [ngSwitch]="selectedField.type">
<mat-form-field class="aca-rule-simple-condition__form__field-input aca-rule-simple-condition__form__parameter-input" [ngSwitch]="selectedField.type">
<mat-select formControlName="parameter" data-automation-id="simple-condition-value-select" *ngSwitchCase="'mimeType'">
<mat-option *ngFor="let mimeType of mimeTypes"
[value]="mimeType.value">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
flex-direction: row;
gap: 8px;

mat-form-field {
.aca-rule-simple-condition__form__field-input {
flex: 2;
font-size: inherit;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ title | translate }}
</div>
<button mat-icon-button mat-dialog-close class="aca-edit-rule-dialog__header__close" tabindex="-1">
<mat-icon>close</mat-icon>
<mat-icon class="aca-edit-rule-dialog__header__icon">close</mat-icon>
</button>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}

&__close {
& mat-icon {
& .aca-edit-rule-dialog__header__icon {
font-size: 18px;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
}
}

/* stylelint-disable selector-class-pattern */
&.aca-read-only,
.mat-form-field-disabled {
.mat-form-field-underline,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<span class="aca-rule-list__item__header__title">
{{ 'ACA_FOLDER_RULES.RULE_LIST.INHERITED_RULES' | translate }}
<mat-icon class="aca-rule-list__item__header__title__mat-icon" [matTooltip]="'ACA_FOLDER_RULES.RULE_LIST.INHERITED_RULES_WILL_BE_RUN_FIRST' | translate">
<mat-icon class="aca-rule-list__item__header__title__icon" [matTooltip]="'ACA_FOLDER_RULES.RULE_LIST.INHERITED_RULES_WILL_BE_RUN_FIRST' | translate">
info
</mat-icon>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
justify-content: flex-start;
flex: 1;

&__mat-icon {
&__icon {
transform: scale(0.8);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<img class="aca-details-breadcrumb-icon" alt="{{ 'APP.INFO_DRAWER.ICON' | translate }}" src="{{ nodeIcon }}">
{{ node.name }} </span>
</div>
<div class="acs-details-buttons">
<div class="aca-details-buttons">
<aca-toolbar [items]="aspectActions" info-drawer-buttons></aca-toolbar>
<button
class="aca-close-details-button"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
app-details-manager {
.acs-details-buttons {
.aca-details-buttons {
display: flex;

.aca-close-details-button {
Expand All @@ -26,21 +26,19 @@ app-details-manager {
margin-top: 40px;
height: calc(100% - 136px);

.mat-tab-body-wrapper {
> div {
height: 100%;
}

.mat-tab-list {
margin-left: 50px;

.mat-tab-labels {
.mat-tab-label {
padding: 0 12px;
min-width: 95px;
letter-spacing: 0.25px;
height: 32px;
}
div[role='tab'] {
&:first-of-type {
margin-left: 50px;
}

padding: 0 12px;
min-width: 95px;
letter-spacing: 0.25px;
height: 32px;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(click)="searchSubmit(searchTerm)"
[title]="'SEARCH.BUTTON.TOOLTIP' | translate"
>
<mat-icon class="app-search-button-icon" [attr.aria-label]="'SEARCH.BUTTON.ARIA-LABEL' | translate">search</mat-icon>
<mat-icon class="app-search-input-control-icon app-search-button-icon" [attr.aria-label]="'SEARCH.BUTTON.ARIA-LABEL' | translate">search</mat-icon>
</button>
<mat-form-field class="app-input-form-field" [floatLabel]="'never'">
<input
Expand All @@ -23,7 +23,7 @@
autocomplete="off"
/>
<div matSuffix class="app-suffix-search-icon-wrapper">
<mat-icon *ngIf="searchTerm.length" (click)="clear()" class="app-clear-icon">clear</mat-icon>
<mat-icon *ngIf="searchTerm.length" (click)="clear()" class="app-search-input-control-icon app-clear-icon">clear</mat-icon>
</div>
</mat-form-field>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $top-margin: 12px;
margin: 14px 1px;
float: left;

mat-icon {
.app-search-input-control-icon {
font-size: 24px;
cursor: pointer;
}
Expand All @@ -24,16 +24,13 @@ $top-margin: 12px;
box-sizing: border-box;
margin-bottom: 12px;

/* stylelint-disable-next-line selector-class-pattern */
.mat-form-field-underline {
display: none;
}

.mat-form-field-label-wrapper {
label {
cursor: text;
}

// fixes pointer event on FF
&.app-search-menu-trigger .mat-form-field-label-wrapper {
pointer-events: auto;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,26 @@ $top-margin: 12px;
letter-spacing: -0.7px;
margin-bottom: -8px;

.app-search-options-checkbox label {
max-width: 155px;
}

&-checkbox {
padding: 3px 24px 3px 19px;

/* stylelint-disable-next-line selector-class-pattern */
.mat-checkbox-inner-container {
height: 18px;
width: 18px;
}

.mat-checkbox-label {
/* stylelint-disable-next-line no-descending-specificity */
label {
padding: 0 0 0 11px;
overflow: hidden;
text-overflow: ellipsis;
}
}

.app-search-options-checkbox label {
max-width: 155px;
}
}

.app-search-hint {
Expand All @@ -122,17 +124,17 @@ $top-margin: 12px;
#search-options {
padding-left: 20px;

mat-checkbox {
label {
max-width: 105px;
}

.app-search-options-checkbox {
padding: 3px 20px 3px 0;

.mat-checkbox-label {
label {
padding: 0;
}
}

label {
max-width: 105px;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ aca-search-results {
color: var(--theme-search-chip-icon-color);
}

mat-icon {
.adf-search-filter-chip-icon {
color: var(--theme-search-chip-icon-color);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h4 class="app-general-title">{{'APP.EDIT_PROFILE.GENERAL' | translate}}</h4>
(click)="onSaveGeneralData(profileForm)">{{'APP.EDIT_PROFILE.SAVE' | translate}}</button>
</div>
</div>
<mat-divider class="app-mat-divider" *ngIf="generalSectionDropdown"></mat-divider>
<mat-divider class="app-divider" *ngIf="generalSectionDropdown"></mat-divider>
<div *ngIf="generalSectionDropdown">
<div class="app-general-dropdown">
<div class="app-general-dropdown-details">
Expand Down Expand Up @@ -96,7 +96,7 @@ <h4 class="app-general-title">{{'APP.EDIT_PROFILE.COMPANY_DETAILS' | translate}}
(click)="onSaveCompanyData(profileForm)">{{'APP.EDIT_PROFILE.SAVE' | translate}}</button>
</div>
</div>
<mat-divider class="app-mat-divider" *ngIf="contactSectionDropdown"></mat-divider>
<mat-divider class="app-divider" *ngIf="contactSectionDropdown"></mat-divider>
<div *ngIf="contactSectionDropdown">
<div class="app-general-dropdown">
<div class="app-general-dropdown-details">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ app-view-profile {
text-align: end;
}

.app-mat-divider {
.app-divider {
border-top-width: 2px;
border-top-color: var(--theme-grey-background-color);
padding-left: -1px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<mat-icon>error</mat-icon>
<mat-icon class="generic-error__icon">error</mat-icon>
<p class="generic-error__title">
{{ text | translate }}
</p>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
font-size: 16px;
}

mat-icon {
&__icon {
color: var(--theme-warn-color, #f44336);
font-size: 52px;
height: 52px;
Expand Down

0 comments on commit 4a5cc24

Please sign in to comment.