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-27 - Added accessibility props to clear notes button in NotepadScreen
**Learning:** Icon-only buttons often lack accessible properties and proper hitSlops making them difficult to interact with on touch screens and completely invisible or undescriptive to screen readers.
**Action:** Add `accessible`, `accessibilityRole`, `accessibilityLabel`, and `hitSlop` to all icon-only `TouchableOpacity` components.
11 changes: 10 additions & 1 deletion src/screens/NotepadScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,21 @@ 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
accessibilityRole="button"
accessibilityLabel={t('notepadClearTitle')}
hitSlop={{ top: 8, bottom: 8, left: 8, right: 8 }}
>
<MaterialIcons name="delete-outline" size={22} color="#EF4444" />
</TouchableOpacity>
<TouchableOpacity
onPress={save}
style={[s.saveBtn, saved && s.saveBtnDim]}
disabled={saved}
accessibilityState={{ disabled: saved }}
>
<MaterialIcons name="save" size={18} color="#fff" />
<Text style={s.saveTxt}>{saved ? t('notepadSaved') : t('notepadSave')}</Text>
Expand Down
Loading