a11y(AddEventDialog): i18n staged-list label + add title aria-label
This commit is contained in:
@@ -229,7 +229,7 @@ export function AddEventDialog({ open, onOpenChange, defaultProjectId, onRecordH
|
||||
<p className="text-xs text-muted-foreground py-2">{t('timeline.emptyStagedHint')}</p>
|
||||
) : (
|
||||
<ScrollArea className="max-h-40 border rounded-md">
|
||||
<ul className="flex flex-col" aria-label="Staged events">
|
||||
<ul className="flex flex-col" aria-label={t('timeline.staged', { count: staged.length })}>
|
||||
{staged.map((e) => (
|
||||
<li key={e.id} className="flex items-center gap-2 px-2 py-1.5 text-sm">
|
||||
<Check className="h-3.5 w-3.5 text-chart-2 shrink-0" />
|
||||
@@ -277,6 +277,7 @@ export function AddEventDialog({ open, onOpenChange, defaultProjectId, onRecordH
|
||||
<Input
|
||||
ref={titleRef}
|
||||
placeholder={t('timeline.eventTitlePlaceholder')}
|
||||
aria-label={t('timeline.eventTitlePlaceholder')}
|
||||
value={title}
|
||||
onChange={(e) => setTitle(e.target.value)}
|
||||
autoFocus
|
||||
|
||||
Reference in New Issue
Block a user