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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user