fix: add accessibility attributes, fix placeholder, ensure consistent abbreviation matching

- Add aria-label and role attributes to search TextField for screen readers
- Add role="listbox" and aria-label to search results Paper
- Add role="option", aria-selected, and minHeight to ListItemButton for accessibility
- Update placeholder from "John 3:16" to "John 3" to match chapter-level search
- Change parseReference abbreviation matching from === to startsWith() for consistency with searchBooks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-11 19:31:30 +00:00
parent 66fd575ad5
commit 4287a74805
2 changed files with 12 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ export function parseReference(ref: string): { bookId: number; chapter: number }
for (const book of BIBLE_BOOKS) {
if (book.name.toLowerCase().startsWith(bookQuery) ||
book.abbr.toLowerCase() === bookQuery) {
book.abbr.toLowerCase().startsWith(bookQuery)) {
return {
bookId: book.id,
chapter: Math.max(1, Math.min(chapterNum, book.chapters))