Skip to content

Commit 36d0a3a

Browse files
committed
css
1 parent 726810c commit 36d0a3a

File tree

5 files changed

+26
-2
lines changed

5 files changed

+26
-2
lines changed

web/common/src/components/Lineage/node/NodeBase.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const NodeBase = React.memo(
1616
<BaseNode
1717
data-component="BaseNode"
1818
className={cn(
19-
'bg-lineage-node-background text-lineage-node-foreground bg-[white]',
19+
'bg-lineage-node-background text-lineage-node-foreground',
2020
'h-full flex flex-col flex-1 justify-center flex-shrink-0 rounded-md',
2121
className,
2222
)}

web/common/src/components/Lineage/stories/Lineage.stories.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ export const LineageModel = () => {
6363
--color-lineage-model-column-active: rgba(70, 0, 0, 0.1);
6464
--color-lineage-model-column-icon: rgba(0, 0, 0, 1);
6565
--color-lineage-model-column-icon-active: rgba(0, 0, 0, 1);
66+
67+
68+
--color-input-background: var(--vscode-input-background)!;
69+
--color-input-foreground: var(--vscode-input-foreground)!;
70+
--color-input-placeholder: var(--vscode-input-placeholderForeground)!;
71+
--color-input-border: var(--vscode-input-border)!;
72+
73+
--color-filterable-list-counter-background: rgba(200, 0, 0, 1);
74+
--color-filterable-list-counter-foreground: rgba(200, 0, 0, 1);
6675
}
6776
`}</style>
6877
<ModelLineage
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
:root {
2+
--color-filterable-list-counter-background: var(--color-badge-background);
3+
--color-filterable-list-counter-foreground: var(--color-badge-foreground);
4+
}

web/common/src/components/VirtualList/FilterableList.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { cn } from '@/utils'
88
import { MessageContainer } from '../MessageContainer/MessageContainer'
99
import { Input } from '../Input/Input'
1010

11+
import './FilterableList.css'
12+
1113
export interface FilterableListProps<TItem> {
1214
items: TItem[]
1315
filterOptions?: IFuseOptions<TItem>
@@ -83,7 +85,10 @@ function Counter({
8385
return (
8486
<Badge
8587
size="2xs"
86-
className={cn('flex items-center gap-1 h-full', className)}
88+
className={cn(
89+
'flex items-center gap-1 h-full bg-filterable-list-counter-background text-filterable-list-counter-foreground',
90+
className,
91+
)}
8792
>
8893
{itemsLength !== filteredItemsLength && (
8994
<>

web/common/tailwind.base.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ export default {
7676
background: 'var(--color-badge-background)',
7777
foreground: 'var(--color-badge-foreground)',
7878
},
79+
'filterable-list': {
80+
counter: {
81+
background: 'var(--color-filterable-list-counter-background)',
82+
foreground: 'var(--color-filterable-list-counter-foreground)',
83+
},
84+
},
7985
input: {
8086
'background-lucid': 'var(--color-input-background-lucid)',
8187
background: 'var(--color-input-background)',

0 commit comments

Comments
 (0)