Skip to content

Commit c60e250

Browse files
renemadsenclaude
andcommitted
fix: workspace dropdown styling to match Google Drive
- Form field wrapper: 8px radius (was 9999px pill), white bg (was tinted) - Dropdown panel shadow: subtle (was heavy Material shadow) - Options: 40px height (was 36px), 16px padding (was 12px) - Hover text: dark color (was white on gray bg from eform styles) - Selected state: blue highlight with dark text (was primary color with white) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a49cecf commit c60e250

1 file changed

Lines changed: 51 additions & 14 deletions

File tree

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

Lines changed: 51 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -261,25 +261,49 @@ body.theme-workspace {
261261
background: var(--content-card-bg, #ffffff) !important;
262262
}
263263

264-
// --- Dropdown / select panels — Google Drive style ---
264+
// --- Form-field — Google Drive style (white bg, 8px radius) ---
265+
// Override .mdc-text-field (which sets 9999px pill + tinted bg via !important in styles.scss)
266+
.mdc-text-field,
267+
.mat-mdc-form-field .mdc-text-field {
268+
border-radius: 8px !important;
269+
background-color: var(--content-card-bg, #ffffff) !important;
270+
border-color: var(--icon-secondary, #747775) !important;
271+
272+
&--filled:not(.mdc-text-field--disabled) {
273+
background-color: var(--content-card-bg, #ffffff) !important;
274+
}
275+
276+
&__ripple {
277+
&::before,
278+
&::after {
279+
background-color: var(--content-card-bg, #ffffff) !important;
280+
}
281+
}
282+
283+
&__input {
284+
background-color: var(--content-card-bg, #ffffff) !important;
285+
}
286+
}
287+
288+
// --- Dropdown / select panels — Google Drive style (very subtle shadow) ---
265289
.mat-mdc-select-panel,
266290
.mtx-select-panel,
267291
.mat-mdc-autocomplete-panel {
268292
background-color: var(--content-card-bg, #ffffff) !important;
269293
border-radius: 8px !important;
270294
border: none !important;
271-
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px -1px,
272-
rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
273-
rgba(0, 0, 0, 0.12) 0px 1px 10px 0px !important;
295+
box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
296+
rgba(0, 0, 0, 0.06) 0px 1px 2px 0px !important;
274297
}
275298

276-
// Dropdown options — match menu item style
299+
// Dropdown options — match Google Drive (40px height, 16px padding)
277300
.mat-mdc-option {
278301
font-size: 14px !important;
279302
font-weight: 400 !important;
280303
font-family: var(--font-family) !important;
281304
color: var(--text-header, #1f1f1f) !important;
282-
min-height: 36px !important;
305+
min-height: 40px !important;
306+
padding: 0 16px !important;
283307
border-radius: 0 !important;
284308

285309
&:hover,
@@ -289,34 +313,47 @@ body.theme-workspace {
289313
}
290314
}
291315

292-
// --- ng-select dropdown panel — Google Drive style ---
316+
// --- ng-select dropdown panel — Google Drive style (subtle shadow) ---
293317
.ng-dropdown-panel {
294318
background-color: var(--content-card-bg, #ffffff) !important;
295319
border-radius: 8px !important;
296320
border: none !important;
297-
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px -1px,
298-
rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
299-
rgba(0, 0, 0, 0.12) 0px 1px 10px 0px !important;
321+
box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
322+
rgba(0, 0, 0, 0.06) 0px 1px 2px 0px !important;
300323
overflow: hidden;
301324

302325
.ng-option {
303326
font-size: 14px !important;
304327
font-weight: 400 !important;
305328
font-family: var(--font-family) !important;
306329
color: var(--text-header, #1f1f1f) !important;
307-
height: 36px !important;
308-
min-height: 36px !important;
330+
height: 40px !important;
331+
min-height: 40px !important;
309332
display: flex !important;
310333
align-items: center !important;
311-
padding: 0 12px !important;
334+
padding: 0 16px !important;
335+
336+
.ng-option-label {
337+
font-weight: 400 !important;
338+
color: var(--text-header, #1f1f1f) !important;
339+
}
312340

313341
&:hover,
314342
&.ng-option-marked {
315343
background-color: var(--table-row-hover, #f1f3f4) !important;
344+
345+
.ng-option-label {
346+
color: var(--text-header, #1f1f1f) !important;
347+
}
316348
}
317349

318-
&.ng-option-selected {
350+
&.ng-option-selected,
351+
&[aria-selected="true"] {
319352
background-color: var(--sort-indicator-bg, #c2e7ff) !important;
353+
354+
.ng-option-label {
355+
color: var(--text-header, #1f1f1f) !important;
356+
}
320357
}
321358
}
322359
}

0 commit comments

Comments
 (0)