Skip to content

Commit

Permalink
♿improve accessibility with aria label on delete button ♿
Browse files Browse the repository at this point in the history
  • Loading branch information
Aszurar committed Jan 22, 2024
1 parent 3cb07b0 commit f57034a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Dashboard/TableRows/TableRowMobile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type TableRowWebProps = {
export function TableRowMobile({
transaction,
handleRemoveTransactionById,
}: TableRowWebProps) {
}: Readonly<TableRowWebProps>) {
return (
<>
<div className=" flex items-center justify-between">
Expand All @@ -22,6 +22,7 @@ export function TableRowMobile({
<Button
variant="ghost"
// disabled={isLoadingIcon}
aria-label="Deletar transação"
className="h-8 w-8"
onClick={() => handleRemoveTransactionById(transaction.id)}
>
Expand Down

0 comments on commit f57034a

Please sign in to comment.