diff --git a/src/core/input/playlist-manager.ts b/src/core/input/playlist-manager.ts index 007aea0..be03f10 100644 --- a/src/core/input/playlist-manager.ts +++ b/src/core/input/playlist-manager.ts @@ -213,6 +213,7 @@ export function renderPlaylist(): void { const displayName = formatSongTitle(file.name); const btn = document.createElement('button'); + btn.type = 'button'; btn.className = 'playlist-btn'; // 🎨 Palette: Use formatted title for tooltip and screen readers btn.title = displayName; @@ -244,6 +245,7 @@ export function renderPlaylist(): void { // Remove Button (UX Improvement) const removeBtn = document.createElement('button'); + removeBtn.type = 'button'; removeBtn.className = 'playlist-remove-btn'; removeBtn.innerHTML = ''; // 🎨 Palette: Use formatted title for tooltip and screen readers @@ -292,9 +294,15 @@ export function renderPlaylist(): void { li.style.textAlign = 'center'; const emptyBtn = document.createElement('button'); + emptyBtn.type = 'button'; emptyBtn.className = 'secondary-button'; // Reuse existing class for consistent look + // 🎨 Palette: Improve empty state by making it clear and actionable using existing styles emptyBtn.style.fontSize = '1em'; // Make it slightly more prominent if needed - emptyBtn.innerHTML = 'No songs... Click to Add! '; + emptyBtn.style.width = '100%'; + emptyBtn.innerHTML = ` + Your playlist is empty + Click to add music! + `; emptyBtn.setAttribute('aria-label', 'Playlist empty. Click to upload music files.'); emptyBtn.onclick = (e) => {