Skip to content

Commit 1a02253

Browse files
committed
fix: invert the genkit logo in dark mode
The Genkit logo is black which makes it blend into the background in dark mode. These changes use a CSS filter to invert it.
1 parent 71bad00 commit 1a02253

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

report-app/src/app/shared/provider-label.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ const exactMatches: Record<string, string> = {
2323
width: 24px;
2424
height: 24px;
2525
}
26+
27+
:host-context(.dark-mode) :host(.genkit) .logo {
28+
filter: invert(1);
29+
}
2630
`,
2731
template: `
2832
@let logo = this.logo();
@@ -33,6 +37,9 @@ const exactMatches: Record<string, string> = {
3337
3438
{{ label() }}
3539
`,
40+
host: {
41+
'[class]': 'id()',
42+
},
3643
})
3744
export class ProviderLabel {
3845
readonly id = input<string>();

0 commit comments

Comments
 (0)