Commit aff8133
fix(feedback-widget): adapt to dark mode, expand placeholder, accept bug reports
The FAB, mini-FAB stack, "Thanks!" toast, and the popover (Paper +
TextFields + secondary text) all relied on MUI palette tokens
(`background.default`, `text.primary`, `background.paper`, `text.secondary`)
that resolve to light-palette values regardless of the active theme — MUI's
palette is hard-pinned to `mode: 'light'` and dark mode runs only through
CSS custom properties on `<html>`. As a result the widget appeared as cream
surfaces on a dark page.
Switch the relevant surfaces and text colors to the CSS tokens
(`--bg-surface`, `--bg-elevated`, `--ink`, `--ink-muted`, `--rule`) so the
widget tracks the active scheme. The popover paper additionally overrides
the nested `.MuiOutlinedInput-*` and `.MuiToggleButton-root` selectors so
the input outline, placeholder, and selected reaction button read correctly
on both surfaces.
The structural cure (migrating the theme to `CssVarsProvider` with both
colorSchemes) is tracked in #7281.
Also update the message placeholder from "Typo, weird chart, feature idea…"
to "Bug, idea, typo, anything…" — bugs are a valid (and already reactable)
feedback category, and the previous wording read as dismissive.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 780a2e2 commit aff8133
1 file changed
Lines changed: 40 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
388 | 416 | | |
389 | 417 | | |
390 | 418 | | |
391 | 419 | | |
392 | 420 | | |
393 | | - | |
| 421 | + | |
394 | 422 | | |
395 | 423 | | |
396 | 424 | | |
| |||
409 | 437 | | |
410 | 438 | | |
411 | 439 | | |
412 | | - | |
| 440 | + | |
413 | 441 | | |
414 | 442 | | |
415 | 443 | | |
| |||
446 | 474 | | |
447 | 475 | | |
448 | 476 | | |
449 | | - | |
| 477 | + | |
450 | 478 | | |
451 | 479 | | |
452 | 480 | | |
| |||
476 | 504 | | |
477 | 505 | | |
478 | 506 | | |
479 | | - | |
| 507 | + | |
480 | 508 | | |
481 | 509 | | |
482 | 510 | | |
| |||
0 commit comments