Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .jules/palette.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 2026-04-15 - Missing ARIA labels on Icon-only buttons
**Learning:** Icon-only buttons without an explicit ARIA label are not announced correctly by screen readers, rendering them inaccessible. This is a common pattern in the React Native codebase where visual icons (like 'delete-outline') are heavily used without text.
**Action:** Always apply `accessible={true}`, `accessibilityRole="button"`, and a descriptive `accessibilityLabel` to `<TouchableOpacity>` wrappers surrounding icon-only components.
2 changes: 1 addition & 1 deletion src/screens/NotepadScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function NotepadScreen() {
<Text style={s.title}>{t('notepadTitle')}</Text>
</View>
<View style={s.actions}>
<TouchableOpacity onPress={clear} style={s.iconBtn}>
<TouchableOpacity onPress={clear} style={s.iconBtn} accessible={true} accessibilityRole="button" accessibilityLabel={t('notepadClearTitle')}>
<MaterialIcons name="delete-outline" size={22} color="#EF4444" />
</TouchableOpacity>
<TouchableOpacity
Expand Down
Loading