Pull request #120: Distinguish between active and hover in dialogs

Merge in RED/ui from RED-1117 to master

* commit '534692ce9b22d316349281d73054d0aa0ff5c40c':
  Distinguish between active and hover in dialogs
This commit is contained in:
Kresnadi Budisantoso 2021-03-11 16:51:39 +01:00
commit 5b3e603cf4
2 changed files with 10 additions and 13 deletions

View File

@ -38,7 +38,7 @@
<div class="red-input-group required w-300" *ngIf="isDictionaryRequest && !isFalsePositiveRequest">
<label translate="manual-annotation.dialog.content.dictionary"></label>
<mat-select panelClass="description-select" formControlName="dictionary">
<mat-select formControlName="dictionary">
<mat-select-trigger>{{ displayedDictionaryLabel }}</mat-select-trigger>
<mat-option
*ngFor="let dictionary of redactionDictionaries"

View File

@ -1,18 +1,15 @@
@import 'red-variables';
.mat-select-panel.description-select mat-option.mat-option {
height: unset;
.mat-select-panel .mat-option {
font-family: Inter, sans-serif;
.mat-option-text.mat-option-text {
white-space: normal;
line-height: 16px;
margin: 12px auto;
font-weight: 500;
&:hover:not(.mat-option-disabled),
&:focus:not(.mat-option-disabled) {
background-color: $grey-6;
}
.description {
font-size: 12px;
font-weight: initial;
opacity: 0.6;
}
&.mat-selected:not(.mat-option-multiple) {
background-color: rgba($primary, 0.2);
color: $grey-1;
}
}