Commit 2987fc4
fix(composer): make formatting sub-toolbar tooltips click-through
The formatting sub-toolbar (Bold/Italic/lists/Quote) rendered a bare TooltipContent that still blocked the message textarea floating beneath it. These are raw <button>s with custom active styling, not the shared Button, so bake pointer-events-none onto that one TooltipContent rather than swap in ComposerIconButton. Content only — the trigger keeps pointer/focus (WCAG content-on-hover-or-focus). Adds an e2e case opening the formatting toolbar and asserting the Bold tooltip is click-through.
Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Co-authored-by: npub1223z34h <52a228d6edf316ec6812ac3c9fc0d696ab59fc7954d77e7be31eedcddf91335b@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>1 parent eb05787 commit 2987fc4
2 files changed
Lines changed: 32 additions & 1 deletion
File tree
- desktop
- src/features/messages/ui
- tests/e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
295 | 302 | | |
296 | 303 | | |
297 | 304 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 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 | + | |
0 commit comments