Skip to content

Commit ebf1e33

Browse files
Merge pull request #1 from cbavidge1989-ctrl/palette-aria-labels-diff-view-1074965069224891406
🎨 Palette: Add ARIA labels to diff view buttons
2 parents 472acd6 + 3e9249c commit ebf1e33

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.Jules/palette.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 2026-07-03 - Add ARIA Labels to Diff View Buttons
2+
**Learning:** Adding descriptive aria-label attributes to buttons that contain text (e.g., Undo, Keep) can provide more specific context for screen reader users (e.g., Undo changes, Keep changes) in critical interaction areas like a diff viewer.
3+
**Action:** Consistently evaluate action buttons for screen reader context and add aria-label attributes where the visible text might be too brief or ambiguous out of context.

Server/src/diffView/diffView.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
</div>
2020

2121
<div id="choice-buttons" class="choice-buttons">
22-
<button id="undo-button" class="action-button secondary">Undo</button>
23-
<button id="keep-button" class="action-button">Keep</button>
22+
<button id="undo-button" class="action-button secondary" aria-label="Undo changes">Undo</button>
23+
<button id="keep-button" class="action-button" aria-label="Keep changes">Keep</button>
2424
</div>
2525
</div>
2626

0 commit comments

Comments
 (0)