Skip to content

Commit 21f1009

Browse files
🎨 Palette: Enhance Scratchpad Accessibility and UX
1 parent 9ab5484 commit 21f1009

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

‎.Jules/palette.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 2024-05-23 - Webview Accessibility Gaps
2+
**Learning:** VS Code Webviews are often implemented as raw HTML/JS and can easily miss standard accessibility features like `aria-label` or focus indicators, which native VS Code UI components handle automatically.
3+
**Action:** When auditing VS Code extensions, prioritize checking any `webview` implementations for missing ARIA attributes and focus styles.

‎src/features/scratchpad/scratchpad.html‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,22 @@
2727
resize: none;
2828
padding: 8px;
2929
}
30+
textarea:focus {
31+
outline: 1px solid var(--vscode-focusBorder);
32+
outline-offset: -1px;
33+
}
3034
textarea::placeholder {
3135
color: var(--vscode-input-placeholderForeground);
3236
}
3337
</style>
3438
</head>
3539
<body>
36-
<textarea id="scratchpad" placeholder="Type your notes here..."></textarea>
40+
<textarea
41+
id="scratchpad"
42+
aria-label="Scratchpad Input"
43+
placeholder="Scratchpad: Type your temporary notes here... (Content is cleared on reload)"
44+
spellcheck="false"
45+
></textarea>
3746
<script>
3847
const vscode = acquireVsCodeApi();
3948
const textarea = document.getElementById('scratchpad');

0 commit comments

Comments
 (0)