fix(a11y): label associations for AdminPromoGroupCreate + AdminPinnedMessageCreate

Add htmlFor/id pairs for the name + auto-assign inputs (AdminPromoGroupCreate) and the
content textarea (AdminPinnedMessageCreate). AdminPromoOfferSend skipped — its labels
sit above button-groups, not native controls (a separate role=group/radiogroup pass).
This commit is contained in:
c0mrade
2026-05-26 10:39:22 +03:00
parent a635ca2316
commit 5a8195f83f
2 changed files with 6 additions and 3 deletions

View File

@@ -246,10 +246,11 @@ export default function AdminPinnedMessageCreate() {
<div className="card space-y-6">
{/* Message text */}
<div>
<label className="mb-2 block text-sm font-medium text-dark-300">
<label htmlFor="pm-content" className="mb-2 block text-sm font-medium text-dark-300">
{t('admin.pinnedMessages.content')}
</label>
<textarea
id="pm-content"
value={content}
onChange={(e) => setContent(e.target.value)}
placeholder={t('admin.pinnedMessages.contentPlaceholder')}