Commit 2ef1dbd
Polish self-edit admin button + theme the Cap widget (#261)
Two small UI tweaks asked for after the last self-edit pass:
1) Pending-edits button is no longer perpetually orange. When the
pending queue is empty the button drops to variant="outlined"
+ color="primary" so the speaker self-edit accordion does not look
alarmed by default. As soon as pendingCount > 0 it switches to
variant="contained" + color="warning" so admins notice they have
work to review.
2) Cap captcha widget now follows the host MUI theme. The upstream
defaults are tuned for light surfaces and produce a near-white
box on the dark theme, which clashes hard with Paper. CapWidget
now reads useTheme() and writes the colour CSS custom properties
(background, border, text, checkbox, spinner) on its container
div. CSS variables cascade to the widget child, so the widget
picks the overrides up without us reaching into its internals.
Sizing / radius / padding stay on the widget defaults — only the
colour tokens are themed.
Light mode keeps the exact upstream values to avoid regressing
existing deployments. Dark mode maps to MUI palette tokens
(background.paper, text.primary, divider, action.hover,
action.disabledBackground) so the widget tracks any theme
customisation a deploy might apply.
Frontend tsc clean; vite build succeeds.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 21d6884 commit 2ef1dbd
2 files changed
Lines changed: 58 additions & 4 deletions
File tree
- src
- events/page/speakers/components
- public/speakerEdit
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | | - | |
123 | | - | |
| 126 | + | |
| 127 | + | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
27 | 44 | | |
28 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
29 | 76 | | |
30 | 77 | | |
31 | 78 | | |
| |||
49 | 96 | | |
50 | 97 | | |
51 | 98 | | |
52 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
53 | 103 | | |
0 commit comments