Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit c8fb4ee

Browse files
committed
fix(datatable): colors of DataTable are now theme-dependent
1 parent a8d85b3 commit c8fb4ee

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import '../../styles/variables';
22

3-
$tbl-border-color: rgba(0, 0, 0, 0.12);
3+
$tbl-border-color: var(--theme-dividers);
44
$tbl-border-radius: $border-radius-root !default;
55
$tbl-border-width: 1px;
6-
$tbl-background-hover: rgba(0, 0, 0, 0.04);
6+
$tbl-background-hover: var(--theme-datatables-row-hover);
77
$tbl-head-font-weight: map-get($font-weights, 'medium');

packages/svelte-materialify/src/styles/_variables.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ $material-light-theme: map-deep-merge(
298298
'hover': material-color('grey', 'lighten-3'),
299299
'group': material-color('grey', 'lighten-3'),
300300
),
301+
'datatables': (
302+
'row-hover': rgba(material-color('shades', 'black'), 0.04),
303+
),
301304
'dividers': rgba(material-color('shades', 'black'), 0.12),
302305
'chips': #e0e0e0,
303306
'cards': material-color('shades', 'white'),
@@ -366,6 +369,9 @@ $material-dark-theme: map-deep-merge(
366369
'hover': material-color('grey', 'darken-2'),
367370
'group': material-color('grey', 'darken-2'),
368371
),
372+
'datatables': (
373+
'row-hover': rgba(material-color('shades', 'white'), 0.04),
374+
),
369375
'dividers': rgba(material-color('shades', 'white'), 0.12),
370376
'chips': #555555,
371377
'cards': map-get($material-dark-elevation-colors, '1'),

0 commit comments

Comments
 (0)