resolves #401 by adding dark mode color (#1189)

This commit is contained in:
Arnav Puri 2021-10-21 23:01:21 +05:30 committed by GitHub
parent 37d3bb4ae9
commit cf4e28c59e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -840,8 +840,8 @@ export function Table({
undefined
) {
console.log('componentState.changeSet', componentState.changeSet);
cellProps.style.backgroundColor = '#ffffde';
cellProps.style['--tblr-table-accent-bg'] = '#ffffde';
cellProps.style.backgroundColor = darkMode ? '#1c252f' : '#ffffde';
cellProps.style['--tblr-table-accent-bg'] = darkMode ? '#1c252f' : '#ffffde';
}
}
}