🎨 Palette: Add aria-label and title to markdown TOC button#539
Conversation
Adds `aria-label` and `title` to the icon-only toggle button in the markdown page to improve screen reader accessibility and provide a visual tooltip for mouse users. Co-authored-by: VaiTon <12072630+VaiTon@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Moving the katex.css import to the script block resolves the "Unused CSS selector" errors flagged by the Svelte compiler during the `pnpm check` CI step. Co-authored-by: VaiTon <12072630+VaiTon@users.noreply.github.com>
| @@ -0,0 +1,4 @@ | |||
| ## 2025-03-09 - Accessible Markdown TOC Button | |||
There was a problem hiding this comment.
Per completezza si, però non claimerei nessun diritto (quindi tipo CC0)
There was a problem hiding this comment.
Not part of this pr. Revert
💡 What: Added
aria-labelandtitleattributes to the table of contents toggle button insrc/routes/[...dir]/[file=markdown]/+page.svelte.🎯 Why: The button was previously an icon-only button without any accessible name or tooltip. This made it inaccessible for screen readers and unclear for sighted users before clicking it.
♿ Accessibility: Added an
aria-labelattribute so that screen readers correctly announce the button's purpose ("Toggle table of contents"). Also added atitleattribute for a helpful hover tooltip.PR created automatically by Jules for task 16030115900182998324 started by @VaiTon