diff --git a/lib/core/src/lib/styles/_components-variables.scss b/lib/core/src/lib/styles/_components-variables.scss index 313b00eb76c..7849e29b45b 100644 --- a/lib/core/src/lib/styles/_components-variables.scss +++ b/lib/core/src/lib/styles/_components-variables.scss @@ -4,6 +4,7 @@ @mixin adf-components-variables($theme) { $primary: map-get($theme, primary); $accent: map-get($theme, accent); + $warn: map-get($theme, warn); $defaults: ( --adf-card-view-background: $adf-ref-card-background, @@ -62,6 +63,12 @@ --adf-info-drawer-tab-active-focused-background: mat.get-color-from-palette($primary), --adf-info-drawer-tab-active-focused-color:unset, --adf-info-drawer-tab-active-focused-bottom-line:unset, + + --adf-people-cloud-input-label-default-color: $adf-ref-text-field-label-color, + --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-input-caption-error-color: mat.get-color-from-palette($warn) ); // propagates SCSS variables into the CSS variables scope diff --git a/lib/core/src/lib/styles/_reference-variables.scss b/lib/core/src/lib/styles/_reference-variables.scss index d214c5fff04..9b375d76046 100644 --- a/lib/core/src/lib/styles/_reference-variables.scss +++ b/lib/core/src/lib/styles/_reference-variables.scss @@ -6,6 +6,7 @@ $adf-ref-height-48: 48px; $adf-ref-title-color: rgba(0, 0, 0, 0.87); $adf-ref-description-color: rgba(0, 0, 0, 0.54); $adf-ref-text-field-label-color: rgba(0, 0, 0, 0.54); +$adf-ref-text-field-caption-error-color: #f44336; $adf-ref-select-field-label-color: rgba(0, 0, 0, 0.54); $adf-ref-card-color: rgba(0, 0, 0, 0.87); $adf-ref-card-padding: 16px; @@ -27,3 +28,5 @@ $adf-ref-height: 40px; $adf-ref-width: 40px; $adf-ref-line-height: 40px; $adf-ref-margin-right: 8px; +$adf-ref-autosuggest-result-active-color: rgba(0, 0, 0, 0.87); +$adf-ref-autosuggest-result-disabled-color: rgba(0, 0, 0, 0.54); diff --git a/lib/process-services-cloud/src/lib/people/components/people-cloud.component.html b/lib/process-services-cloud/src/lib/people/components/people-cloud.component.html index 0a00b873523..29bee9e0c49 100644 --- a/lib/process-services-cloud/src/lib/people/components/people-cloud.component.html +++ b/lib/process-services-cloud/src/lib/people/components/people-cloud.component.html @@ -1,6 +1,7 @@
- - {{ title | translate }} + + {{ title | translate }} - +
diff --git a/lib/process-services-cloud/src/lib/people/components/people-cloud.component.scss b/lib/process-services-cloud/src/lib/people/components/people-cloud.component.scss index 4531a2ae6c2..06ce3685b0a 100644 --- a/lib/process-services-cloud/src/lib/people/components/people-cloud.component.scss +++ b/lib/process-services-cloud/src/lib/people/components/people-cloud.component.scss @@ -5,6 +5,14 @@ &-option-not-active { background: inherit !important; } + + &-title { + color: var(--adf-people-cloud-input-label-default-color); + + &--focus { + color: var(--adf-people-cloud-input-label-focus-color); + } + } } &-people-cloud-list { @@ -12,6 +20,14 @@ padding: 10px 0; } + &-people-cloud-option-active:not(&:disabled){ + color: var(--adf-people-cloud-autosuggest-result-active-color); + } + + &-people-cloud-option-not-active:not(&:active) { + color: var(--adf-people-cloud-autosuggest-result-disabled-color); + } + &-people-cloud-row { display: flex; align-items: center; @@ -19,16 +35,12 @@ } &-people-cloud-pic { - background: var(--theme-primary-color); display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 100px; - color: var(--adf-theme-foreground-text-color); - font-weight: bolder; - font-size: var(--theme-adf-picture-1-font-size); text-transform: uppercase; } @@ -40,15 +52,12 @@ &-message { padding-right: 8px; height: 16px; - font-size: var(--theme-caption-font-size); line-height: 1.33; - color: var(--theme-warn-color); width: auto; } + } - &-icon { - font-size: var(--theme-adf-icon-1-font-size); - color: var(--theme-warn-color); - } + &-error, &-error-text, &-error-icon { + color: var(--adf-people-cloud-input-caption-error-color); } }