Skip to content

Make lyric lines accessible (#32514 & 19510) [4.7.3]#33436

Open
mathesoncalum wants to merge 3 commits into
musescore:4.7from
mathesoncalum:32514-lyric_lines_navigation-471
Open

Make lyric lines accessible (#32514 & 19510) [4.7.3]#33436
mathesoncalum wants to merge 3 commits into
musescore:4.7from
mathesoncalum:32514-lyric_lines_navigation-471

Conversation

@mathesoncalum
Copy link
Copy Markdown
Contributor

Resolves: #32514
Resolves: #19510

This PR includes lyric lines in the alt+direction navigation chain (ace2e5d) and ensures that the screen reader reads the type name out (0b6c55a). The video below demos the navigation order, which is as follows when starting on a note:

1st verse lyrics -> 1st verse lyrics line -> 2nd verse lyrics -> 2nd verse lyrics line (etc.) -> next note

lyrlinedemo.mov

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@mathesoncalum
Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 15, 2026

✅ Actions performed

Full review triggered.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 15, 2026

Review Change Stack

📝 Walkthrough

Walkthrough

ChordRest navigation between articulations and lyrics is refactored to explicitly handle LyricsLine elements. The nextArticulationOrLyric and prevArticulationOrLyric methods now detect LyricsLine objects, return their associated Lyrics, and correct cycling behavior to return nullptr consistently. Element dispatch in nextElement and prevElement is updated to route ElementType::LYRICSLINE through the same articulation/lyric navigation path as ElementType::LYRICS. The lastElementBeforeSegment method now prefers returning LyricsLine separators when present. Additionally, LyricsLayout::createOrRemoveLyricsLine switches from direct allocation to Factory::createLyricsLine for object construction.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 55.56% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description includes issue references, clear explanation of changes, a demonstration of the navigation order, and a video demo. However, it lacks completion of the template checklist items.
Linked Issues check ✅ Passed The code changes implement the core requirements: making lyric lines navigable via Alt+arrow navigation [#32514] and ensuring screen readers announce lyric-line type information [#19510].
Out of Scope Changes check ✅ Passed All changes are directly related to making lyric lines navigable and accessible: updates to navigation logic in ChordRest and lyric line creation in LyricsLayout.
Title check ✅ Passed The PR title accurately summarizes the main objective: making lyric lines accessible through keyboard navigation and screen reader support.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mathesoncalum mathesoncalum force-pushed the 32514-lyric_lines_navigation-471 branch from 0b6c55a to 51d9342 Compare May 15, 2026 15:27
@mathesoncalum mathesoncalum requested a review from shoogle May 18, 2026 10:10
@mathesoncalum mathesoncalum changed the title Make lyric lines accessible (#32514 & 19510) [4.7.1] Make lyric lines accessible (#32514 & 19510) [4.7.2] May 18, 2026
@mathesoncalum mathesoncalum changed the title Make lyric lines accessible (#32514 & 19510) [4.7.2] Make lyric lines accessible (#32514 & 19510) [4.7.3] May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editable lyric lines not navigatable with screen reader Accessibility Screen Reader does not read hyphen or underscore in lyrics

1 participant