Skip to content

Commit

Permalink
[AAE-15206] apply design tokens for TaskAssignmentFilterCloudComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
wojd0 committed Jan 8, 2024
1 parent fde49f9 commit 6efdd78
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
5 changes: 4 additions & 1 deletion lib/core/src/lib/styles/_components-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@
--adf-group-cloud-input-label-focus-color: mat.get-color-from-palette($primary),
--adf-group-cloud-autosuggest-result-active-color: $adf-ref-autosuggest-result-active-color,
--adf-group-cloud-autosuggest-result-disabled-color: $adf-ref-autosuggest-result-disabled-color,
--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: $adf-ref-select-option-color,
--adf-task-assignment-filter-option-selected-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
@@ -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,22 @@
.adf-cloud-assignment-container {
display: flex;
flex-wrap: wrap;

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

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

&-container {
width: 100%;
}

&-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 6efdd78

Please sign in to comment.