max / balanced_breakfast
1 file changed,
+4 insertions,
-2 deletions
| @@ -58,8 +58,10 @@ | |||
| 58 | 58 | controls.className = 'article-controls'; | |
| 59 | 59 | const pin = document.createElement('button'); | |
| 60 | 60 | pin.className = 'star-btn' + (bm.isPinned ? ' starred' : ''); | |
| 61 | - | pin.setAttribute('aria-label', 'Toggle pin'); | |
| 62 | - | pin.textContent = '\u{1F4CC}'; | |
| 61 | + | pin.setAttribute('aria-label', bm.isPinned ? 'Unpin from top' : 'Pin to top'); | |
| 62 | + | // Geometric star glyphs (not emoji): filled = pinned, hollow = not. | |
| 63 | + | // Matches the .star-btn vocabulary; no-emoji brand rule. | |
| 64 | + | pin.textContent = bm.isPinned ? '★' : '☆'; | |
| 63 | 65 | pin.onclick = (e) => { e.stopPropagation(); togglePin(bm.id, bm.isPinned); }; | |
| 64 | 66 | controls.appendChild(pin); | |
| 65 | 67 |