Skip to content

Commit 7c0f580

Browse files
authored
feat(core): apply glass effect to sticky DataTable header (#340)
1 parent 897ce82 commit 7c0f580

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/core/src/client/webcomponents/json-render/components

packages/core/src/client/webcomponents/json-render/components/DataTable.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ export const DataTable = defineComponent({
3232
textAlign: 'left',
3333
fontWeight: '600',
3434
fontSize: '11px',
35-
opacity: '0.7',
3635
whiteSpace: 'nowrap',
3736
width: col.width,
3837
position: 'sticky',
3938
top: 0,
40-
backgroundColor: bg,
39+
backgroundColor: `color-mix(in oklab,${bg} 75%,transparent)`,
40+
backdropFilter: 'blur(8px)',
4141
},
4242
}, col.label),
4343
)),

0 commit comments

Comments
 (0)