Skip to content

Commit

Permalink
fix(@clayui/core): fix accessibility error for aria-colindex value
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Dec 8, 2023
1 parent b4e9117 commit 931f426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/clay-core/src/table/Cell.tsx
Expand Up @@ -141,7 +141,7 @@ export const Cell = React.forwardRef<HTMLTableCellElement, Props>(
<As
{...otherProps}
{...focusWithinProps}
aria-colindex={isHead && !sortable ? undefined : index}
aria-colindex={isHead && !sortable ? undefined : index! + 1}
aria-describedby={
isHead && sortable ? sortDescriptionId : undefined
}
Expand Down

0 comments on commit 931f426

Please sign in to comment.