Skip to content

Commit

Permalink
[AAE-15206] add tokens for label
Browse files Browse the repository at this point in the history
  • Loading branch information
wojd0 committed Dec 19, 2023
1 parent 462fb2b commit dcfbb3e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/core/src/lib/styles/_components-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@
--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)
--adf-task-assignment-filter-option-selected-color: mat.get-color-from-palette($primary),
--adf-task-assignment-filter-label-default-color: $adf-ref-select-field-label-color,
--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
@@ -1,8 +1,11 @@
<div class="adf-cloud-assignment-container">
<mat-form-field floatLabel="auto" class="adf-task-assignment-filter-container">
<mat-label class="adf-task-assignment-filter-label"
[ngClass]="{'adf-task-assignment-filter-label--focus': filterSelect.focused}">
{{ 'ADF_CLOUD_TASK_ASSIGNMENT_FILTER.ASSIGNMENT_TYPE' | translate }}
</mat-label>
<mat-select class="adf-task-assignment-filter"
placeholder="{{ 'ADF_CLOUD_TASK_ASSIGNMENT_FILTER.ASSIGNMENT_TYPE' | translate }}"
[(ngModel)]="assignmentType"
[(ngModel)]="assignmentType" #filterSelect
[attr.data-automation-id]="'adf-task-assignment-filter-select'"
(selectionChange)="onAssignmentTypeChange($event)">
<mat-option *ngFor="let assignmentType of assignmentTypeOptions"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
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);

Expand Down

0 comments on commit dcfbb3e

Please sign in to comment.