Commit ffdf566
a11y: add preference to show labels/tooltips (tldraw#6444)
This is to address these issues:
- https://linear.app/tldraw/issue/ACC-72/add-labels-to-the-inputs
-
https://linear.app/tldraw/issue/ACC-4/the-light-grey-states-in-the-panel-on-the-right-side-dont-have-enough
https://github.com/user-attachments/assets/3e4f68f0-1468-4e77-98d4-5a10c904ac4a
<img width="952" height="1016" alt="Screenshot 2025-07-11 at 12 43 39"
src="https://github.com/user-attachments/assets/e21b2ddd-513d-44db-aa4e-908a68104383"
/>
<img width="314" height="854" alt="Screenshot 2025-07-11 at 12 43 48"
src="https://github.com/user-attachments/assets/c1442ff2-6ec5-4429-b7d7-a647868719e8"
/>
<img width="424" height="396" alt="Screenshot 2025-07-11 at 13 35 45"
src="https://github.com/user-attachments/assets/8eb4e7dd-5dab-4091-92ba-05a189aace17"
/>
<img width="1090" height="236" alt="Screenshot 2025-07-11 at 13 35 59"
src="https://github.com/user-attachments/assets/b93b0a9c-9f94-4040-b9c6-ebfdf16c5282"
/>
Focus ring for selected items:
<img width="382" height="404" alt="Screenshot 2025-07-14 at 15 07 02"
src="https://github.com/user-attachments/assets/451cac56-6d4b-4438-9be0-298aa5d16675"
/>
### Change type
- [ ] `bugfix`
- [x] `improvement`
- [ ] `feature`
- [ ] `api`
- [ ] `other`
### Release notes
- a11y: add preference to show labels/tooltips
### API changes
- add `showUiLabels` as a preference
- add `TldrawUiTooltip` as a new component
---------
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
Co-authored-by: alex <alex@dytry.ch>
Co-authored-by: Mitja Bezenšek <mitja.bezensek@gmail.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: alex <alex@tldraw.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: huppy-bot[bot] <128400622+huppy-bot[bot]@users.noreply.github.com>
Co-authored-by: David Sheldrick <d.j.sheldrick@gmail.com>
Co-authored-by: Nakul Sharma <110083584+nakul-bigpi@users.noreply.github.com>1 parent 39bd199 commit ffdf566
37 files changed
Lines changed: 888 additions & 378 deletions
File tree
- apps/dotcom
- client
- e2e
- fixtures
- tests
- src/tla
- app
- components
- TlaSidebar/components
- TlaTooltip
- sync-worker/src
- replicator
- zero-cache/migrations
- assets/translations
- packages
- editor
- src/lib
- config
- editor/managers/UserPreferencesManager
- tldraw
- src
- lib
- ui
- components
- MainMenu
- StylePanel
- Toolbar
- primitives
- context
- hooks/useTranslation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| 712 | + | |
712 | 713 | | |
713 | 714 | | |
714 | 715 | | |
| |||
Lines changed: 15 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | | - | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 23 | | |
31 | 24 | | |
32 | 25 | | |
| |||
213 | 206 | | |
214 | 207 | | |
215 | 208 | | |
216 | | - | |
217 | 209 | | |
218 | 210 | | |
219 | 211 | | |
| |||
232 | 224 | | |
233 | 225 | | |
234 | 226 | | |
235 | | - | |
236 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
| 245 | + | |
| 246 | + | |
258 | 247 | | |
259 | 248 | | |
260 | 249 | | |
Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 17 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 16 | | |
24 | 17 | | |
25 | 18 | | |
| |||
59 | 52 | | |
60 | 53 | | |
61 | 54 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
86 | 71 | | |
87 | 72 | | |
88 | 73 | | |
| |||
0 commit comments