Skip to content

Commit

Permalink
match filter bar filter colors
Browse files Browse the repository at this point in the history
  • Loading branch information
amirbashan committed Dec 25, 2024
1 parent 65b436b commit 2d59285
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions projects/srm/src/app/response/response.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { LayoutService } from '../layout.service';
})
export class ResponseComponent extends ResponseBase implements OnChanges {

@Input() defaultColors = false;
@Input() response: TaxonomyItem = {};

@Input() selected = false;
Expand Down Expand Up @@ -79,6 +80,15 @@ export class ResponseComponent extends ResponseBase implements OnChanges {
super.recalcColors();
this.textColor = '#555452';
}
if (this.defaultColors && !this.disabled) {
this.color = "#FFFDF5";
this.expandColor = this.color;
this.bgColor = this.color;
this.pointBgColor = '#BBCDFE';
this.textColor = '#767573';
this.borderColor = '#b9b7b4';
this.linkColor = this.textColor;
}
}

onClick() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
[count]='(filtersState.currentSearchParams.filter_responses || []).indexOf(item.key) > -1 ? null : item.doc_count || 0'
[plus]='(filtersState.currentSearchParams.filter_responses || []).indexOf(item.key) > -1 ? false : item.plus || false'
(clicked)='filtersState.toggleResponse(filtersState.responsesMap[item.key])'
[defaultColors]='true'
></app-response>

}
Expand Down

0 comments on commit 2d59285

Please sign in to comment.