increase topic chip contrast
This commit is contained in:
@@ -116,6 +116,25 @@ export class TopicChipComponent {
|
||||
return this.colorTokens?.color ?? this.color;
|
||||
}
|
||||
|
||||
@HostBinding('style.--topic-text')
|
||||
get topicText(): string {
|
||||
return this.colorTokens?.color
|
||||
? this.colorTokens.color
|
||||
: `color-mix(in srgb, ${this.topicColor} 38%, #0f172a)`;
|
||||
}
|
||||
|
||||
@HostBinding('style.--topic-count-bg')
|
||||
get topicCountBackground(): string {
|
||||
return this.colorTokens?.background ?? '#ffffff';
|
||||
}
|
||||
|
||||
@HostBinding('style.--topic-count-text')
|
||||
get topicCountText(): string {
|
||||
return this.colorTokens?.color
|
||||
? this.colorTokens.color
|
||||
: `color-mix(in srgb, ${this.topicColor} 48%, #0f172a)`;
|
||||
}
|
||||
|
||||
get hasCount(): boolean {
|
||||
return (
|
||||
this.count !== undefined && this.count !== null && `${this.count}` !== ''
|
||||
|
||||
Reference in New Issue
Block a user