Skip to content

Commit 1942825

Browse files
feat(ui): add aria-label and title to ConfigTable action buttons
Co-authored-by: jmbish04 <26469722+jmbish04@users.noreply.github.com>
1 parent 448022e commit 1942825

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/frontend/src/components/config/ConfigTable.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ export function ConfigTable({ data, fields, onSave }: ConfigTableProps) {
132132
<TableCell className="text-right">
133133
{isEditing ? (
134134
<div className="flex justify-end gap-2">
135-
<Button size="icon" variant="ghost" onClick={() => handleSave(field.key, field.type)} disabled={isSaving}>
135+
<Button size="icon" variant="ghost" onClick={() => handleSave(field.key, field.type)} disabled={isSaving} aria-label="Save changes" title="Save changes">
136136
<Check className="h-4 w-4 text-green-500" />
137137
</Button>
138-
<Button size="icon" variant="ghost" onClick={handleCancel} disabled={isSaving}>
138+
<Button size="icon" variant="ghost" onClick={handleCancel} disabled={isSaving} aria-label="Cancel editing" title="Cancel editing">
139139
<X className="h-4 w-4 text-red-500" />
140140
</Button>
141141
</div>
142142
) : (
143-
<Button size="icon" variant="ghost" onClick={() => handleEdit(field.key, currentValue)}>
143+
<Button size="icon" variant="ghost" onClick={() => handleEdit(field.key, currentValue)} aria-label="Edit setting" title="Edit setting">
144144
<Pencil className="h-4 w-4" />
145145
</Button>
146146
)}

0 commit comments

Comments
 (0)