Skip to content

Commit

Permalink
[AAE-15206] apply design tokens for TaskAssignmentFilterCloudComponent (
Browse files Browse the repository at this point in the history
#9172)

* [AAE-15295] added design tokens to PeopleCloudComponent

* [AAE-15295] re-add initials picture background

* [AAE-15294] applied design tokens for GroupCloudComponent

* [AAE-15294] replaced reference variables with theme

* [AAE-15294] applied design tokens for GroupCloudComponent

* [AAE-15206] apply design tokens for TaskAssignmentFilterCloudComponent

* [AAE-15206] add tokens for label

* [AAE-15206] replaced reference variables with theme values

* [AAE-15206] remove last remaining reference colors

* [AAE-19026] Fix app permissions (#9171)

* [AAE-15295] added design tokens to PeopleCloudComponent (#9162)

* [AAE-15295] added design tokens to PeopleCloudComponent

* [AAE-15294] separate component variables

* [AAE-15294] fix rebase

* [AAE-15294] readded background color to cloud pic

* [AAE-15294] rebase

* [AAE-15294] remove duplicate theme pick

* [AAE-15294] applied design tokens for GroupCloudComponent

* [AAE-15294] applied design tokens for GroupCloudComponent

* [AAE-15206] apply design tokens for TaskAssignmentFilterCloudComponent

* [AAE-15206] replaced reference variables with theme values

* [AAE-19026] Fix app permissions (#9171)

* [AAE-15294] separate component variables

* [AAE-15206] remove duplicate palette pick
  • Loading branch information
wojd0 committed Jan 8, 2024
1 parent 551bfeb commit 03647f6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
7 changes: 6 additions & 1 deletion lib/core/src/lib/styles/_components-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@
--adf-group-cloud-input-label-focus-color: mat.get-color-from-palette($primary),
--adf-group-cloud-autosuggest-result-active-color: mat.get-color-from-palette($foreground, text),
--adf-group-cloud-autosuggest-result-disabled-color: mat.get-color-from-palette($foreground, secondary-text),
--adf-group-cloud-input-caption-error-color: mat.get-color-from-palette($warn)
--adf-group-cloud-input-caption-error-color: mat.get-color-from-palette($warn),

--adf-task-assignment-filter-option-default-color: mat.get-color-from-palette($foreground, text),
--adf-task-assignment-filter-option-selected-color: mat.get-color-from-palette($primary),
--adf-task-assignment-filter-label-default-color: mat.get-color-from-palette($foreground, secondary-text),
--adf-task-assignment-filter-label-focus-color: mat.get-color-from-palette($primary)
);

// propagates SCSS variables into the CSS variables scope
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
</mat-icon>
</mat-chip>
<input *ngIf="!isReadonly()" matInput
#chipInput
[formControl]="searchUserCtrl"
[matAutocomplete]="auto"
[matChipInputFor]="userMultipleChipList"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<div class="adf-cloud-assignment-container">
<mat-form-field [floatLabel]="'auto'">
<mat-form-field floatLabel="auto" class="adf-task-assignment-filter-container">
<mat-select class="adf-task-assignment-filter"
placeholder="{{ 'ADF_CLOUD_TASK_ASSIGNMENT_FILTER.ASSIGNMENT_TYPE' | translate }}"
[(ngModel)]="assignmentType"
[attr.data-automation-id]="'adf-task-assignment-filter-select'"
(selectionChange)="onAssignmentTypeChange($event)">
<mat-option *ngFor="let assignmentType of assignmentTypeOptions"
[value]="assignmentType.value"
class="adf-task-assignment-filter-option"
[ngClass]="{'adf-task-assignment-filter-option--selected': filterOption.selected}"
[value]="assignmentType.value" #filterOption
[attr.data-automation-id]="'adf-task-assignment-filter-' + assignmentType.value">
{{ assignmentType.label | translate }}
</mat-option>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
.adf-cloud-assignment-container {
display: flex;
flex-wrap: wrap;

mat-form-field {
width: 100%;
}
}

.adf-task-assignment-filter {
margin-right: 10px;

&-container {
width: 100%;
}

&-label {
color: var(--adf-task-assignment-filter-label-default-color);

&.adf-task-assignment-filter-label--focus {
color: var(--adf-task-assignment-filter-label-focus-color);
}
}

&-option {
color: var(--adf-task-assignment-filter-option-default-color);

&.adf-task-assignment-filter-option--selected:not(&:disabled) {
color: var(--adf-task-assignment-filter-option-selected-color);
}
}
}

.adf-group-cloud-filter {
Expand Down

0 comments on commit 03647f6

Please sign in to comment.