Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

keep transpose offset in the accessible name for live-region announcements (#5999)

[._.]/ Adam Eivybe677707a4e8
diff --git a/client/src/pages/SongBookViewer.jsx b/client/src/pages/SongBookViewer.jsx
index 5f1329ba44..fc88bc7ab9 100644
--- a/client/src/pages/SongBookViewer.jsx
+++ b/client/src/pages/SongBookViewer.jsx
@@ -945,7 +945,7 @@ export default function SongBookViewer() {
</button>
<span className="min-w-[3.5rem] text-center text-sm text-gray-300 font-mono" title="Transpose (semitones)" role="status" aria-live="polite" aria-atomic="true">
<span className="sr-only">Transpose </span>
- <span aria-hidden="true">{transpose > 0 ? `+${transpose}` : transpose}</span>
+ <span>{transpose > 0 ? `+${transpose}` : transpose}</span>
<span className="sr-only"> semitones</span>
</span>
<button type="button" onClick={() => setTranspose(transpose + 1)} className={ctrlBtnClass} aria-label={`Transpose up (currently ${transpose > 0 ? '+' : ''}${transpose} semitones)`} title="Transpose up (])">
diff --git a/client/src/pages/SongBookViewer.test.jsx b/client/src/pages/SongBookViewer.test.jsx
index 29095704d8..622e2748da 100644
--- a/client/src/pages/SongBookViewer.test.jsx
+++ b/client/src/pages/SongBookViewer.test.jsx
@@ -379,7 +379,7 @@ E|--3-----|`;
expect(screen.getByRole('button', { name: /Transpose up \(currently 0 semitones\)/ })).toBeTruthy();
// Visible offset stays numeric-only so the control keeps its compact width (#5999).
const transposeStatus = statuses.find((status) => status.textContent === 'Transpose 0 semitones');
- expect(transposeStatus.querySelector('[aria-hidden="true"]').textContent).toBe('0');
+ expect(transposeStatus.querySelector('span:not(.sr-only)').textContent).toBe('0');
fireEvent.click(screen.getByRole('button', { name: /Transpose up \(currently 0/ }));
expect(screen.getAllByRole('status').some((status) => status.textContent === 'Transpose +1 semitones')).toBe(true);