Skip to content

Commit

Permalink
feat: add aria-label to fix jsx-a11y/control-has-associated-label error
Browse files Browse the repository at this point in the history
  • Loading branch information
ixartz committed Nov 10, 2023
1 parent 1fff7ef commit 47e4ff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/DeleteGuestbookEntry.tsx
Expand Up @@ -26,6 +26,7 @@ const DeleteGuestbookEntry = (props: IDeleteGuestbookEntryProps) => {
return (
<button
type="button"
aria-label="delete"
onClick={() => {
handleDelete();
}}
Expand Down
1 change: 1 addition & 0 deletions src/components/EditableGuestbookEntry.tsx
Expand Up @@ -25,6 +25,7 @@ const EditableGuestbookEntry = (props: IEditableGuestbookEntryProps) => {
<>
<button
type="button"
aria-label="edit"
onClick={() => {
handleEdit();
}}
Expand Down

0 comments on commit 47e4ff4

Please sign in to comment.