mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
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:
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user