Skip to content

Commit

Permalink
[AAE-15206] replaced reference variables with theme values
Browse files Browse the repository at this point in the history
  • Loading branch information
wojd0 committed Dec 19, 2023
1 parent dcfbb3e commit 7e4954f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/core/src/lib/styles/_components-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

@mixin adf-components-variables($theme) {
$primary: map-get($theme, primary);
$foreground: map-get($theme, foreground);
$accent: map-get($theme, accent);
$warn: map-get($theme, warn);
$foreground: map-get($theme, foreground);
Expand Down Expand Up @@ -68,18 +69,18 @@

--adf-people-cloud-input-label-default-color: mat.get-color-from-palette($foreground, secondary-text),
--adf-people-cloud-input-label-focus-color: mat.get-color-from-palette($primary),
--adf-people-cloud-autosuggest-result-active-color: $adf-ref-autosuggest-result-active-color,
--adf-people-cloud-autosuggest-result-disabled-color: $adf-ref-autosuggest-result-disabled-color,
--adf-people-cloud-autosuggest-result-active-color: mat.get-color-from-palette($foreground, text),
--adf-people-cloud-autosuggest-result-disabled-color: mat.get-color-from-palette($foreground, secondary-text),
--adf-people-cloud-input-caption-error-color: mat.get-color-from-palette($warn),
--adf-group-cloud-input-label-default-color: $adf-ref-text-field-label-color,
--adf-group-cloud-input-label-default-color: mat.get-color-from-palette($foreground, secondary-text),
--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-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-task-assignment-filter-option-default-color: $adf-ref-select-option-color,
--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: $adf-ref-select-field-label-color,
--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)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
&.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 7e4954f

Please sign in to comment.