Skip to content

Commit 35baaf2

Browse files
renemadsenclaude
andcommitted
fix: workspace table white backgrounds, row hover, sort indicator tokens
- Add table-row-hover and sort-indicator-active tokens to eform/workspace - Emit tokens as CSS custom properties in theme mixin - Force white background on table and rows for Google Drive appearance - Blue sort header text and arrow when column is actively sorted - Row hover highlights in light gray (#f1f3f4) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a519a24 commit 35baaf2

4 files changed

Lines changed: 33 additions & 4 deletions

File tree

eform-client/src/scss/components/_workspace-overrides.scss

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ body.theme-workspace {
99
// --- Table styling (Google Drive-like) ---
1010

1111
.mat-mdc-table {
12-
background: var(--content-card-bg, #ffffff);
12+
background-color: var(--content-card-bg, #ffffff) !important;
1313
}
1414

1515
.mat-mdc-header-row {
16-
background: var(--content-card-bg, #ffffff);
16+
background-color: var(--content-card-bg, #ffffff);
1717
height: 40px;
1818
}
1919

@@ -25,6 +25,11 @@ body.theme-workspace {
2525

2626
.mat-mdc-row {
2727
height: 40px;
28+
background-color: var(--content-card-bg, #ffffff);
29+
30+
&:hover {
31+
background-color: var(--table-row-hover, #f1f3f4) !important;
32+
}
2833
}
2934

3035
.mat-mdc-cell {
@@ -39,14 +44,23 @@ body.theme-workspace {
3944
border-bottom-style: solid;
4045
}
4146

47+
// Active sort indicator — blue arrow
48+
.mat-sort-header-sorted .mat-sort-header-content {
49+
color: var(--sort-indicator-active, #0b57d0);
50+
}
51+
52+
.mat-sort-header-sorted .mat-sort-header-arrow {
53+
color: var(--sort-indicator-active, #0b57d0) !important;
54+
}
55+
4256
// mtx-grid table overrides
4357
.mtx-grid {
4458
.mat-mdc-table {
45-
background: var(--content-card-bg, #ffffff);
59+
background-color: var(--content-card-bg, #ffffff) !important;
4660
}
4761

4862
.mat-mdc-header-row {
49-
background: var(--content-card-bg, #ffffff);
63+
background-color: var(--content-card-bg, #ffffff);
5064
height: 40px;
5165
}
5266

@@ -58,6 +72,11 @@ body.theme-workspace {
5872

5973
.mat-mdc-row {
6074
height: 40px;
75+
background-color: var(--content-card-bg, #ffffff);
76+
77+
&:hover {
78+
background-color: var(--table-row-hover, #f1f3f4) !important;
79+
}
6180
}
6281

6382
.mat-mdc-cell {

eform-client/src/scss/themes/_eform.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ $eform-tokens: (
186186
content-card-bg: #FFFFFF,
187187
content-card-radius: 0,
188188
content-card-margin: 0,
189+
table-row-hover: #f5f5f5,
190+
sort-indicator-active: #289694,
189191
),
190192

191193
// ----- Dark mode -----
@@ -313,6 +315,8 @@ $eform-tokens: (
313315
content-card-bg: #202122,
314316
content-card-radius: 0,
315317
content-card-margin: 0,
318+
table-row-hover: #2a2a2a,
319+
sort-indicator-active: #4FCAC8,
316320
),
317321
),
318322
);

eform-client/src/scss/themes/_theme-mixin.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ $eform-m3-dark-theme: mat.define-theme((
223223
--content-card-bg: #{map.get($mode-colors, content-card-bg)};
224224
--content-card-radius: #{map.get($mode-colors, content-card-radius)};
225225
--content-card-margin: #{map.get($mode-colors, content-card-margin)};
226+
--table-row-hover: #{map.get($mode-colors, table-row-hover)};
227+
--sort-indicator-active: #{map.get($mode-colors, sort-indicator-active)};
226228

227229
// Material component overrides
228230
--mat-table-row-item-outline-color: #{map.get($mode-colors, border)} !important;

eform-client/src/scss/themes/_workspace.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ $workspace-tokens: (
170170
content-card-bg: #FFFFFF,
171171
content-card-radius: 16px,
172172
content-card-margin: 16px,
173+
table-row-hover: #f1f3f4,
174+
sort-indicator-active: #0b57d0,
173175
),
174176

175177
// ----- Dark mode -----
@@ -283,6 +285,8 @@ $workspace-tokens: (
283285
content-card-bg: #28292e,
284286
content-card-radius: 16px,
285287
content-card-margin: 16px,
288+
table-row-hover: #2d2e33,
289+
sort-indicator-active: #a8c7fa,
286290
),
287291
),
288292
);

0 commit comments

Comments
 (0)