mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
fix(a11y): associate Support ticket form labels with their inputs
Add htmlFor/id pairs for the create-ticket subject and message fields so screen readers announce the label and clicking the label focuses the control (WCAG 1.3.1).
This commit is contained in:
@@ -511,8 +511,11 @@ export default function Support() {
|
|||||||
className="space-y-4"
|
className="space-y-4"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<label className="label">{t('support.subject')}</label>
|
<label htmlFor="support-subject" className="label">
|
||||||
|
{t('support.subject')}
|
||||||
|
</label>
|
||||||
<input
|
<input
|
||||||
|
id="support-subject"
|
||||||
type="text"
|
type="text"
|
||||||
className="input"
|
className="input"
|
||||||
placeholder={t('support.subjectPlaceholder')}
|
placeholder={t('support.subjectPlaceholder')}
|
||||||
@@ -524,8 +527,11 @@ export default function Support() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label className="label">{t('support.message')}</label>
|
<label htmlFor="support-message" className="label">
|
||||||
|
{t('support.message')}
|
||||||
|
</label>
|
||||||
<textarea
|
<textarea
|
||||||
|
id="support-message"
|
||||||
className="input min-h-[150px]"
|
className="input min-h-[150px]"
|
||||||
placeholder={t('support.messagePlaceholder')}
|
placeholder={t('support.messagePlaceholder')}
|
||||||
value={newMessage}
|
value={newMessage}
|
||||||
|
|||||||
Reference in New Issue
Block a user