Skip to content

Commit

Permalink
resizer role with value
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-kot committed Sep 15, 2023
1 parent 4e31201 commit a8b32fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/table/resizer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { KeyCode } from '../../internal/keycode';
import { DEFAULT_COLUMN_WIDTH } from '../use-column-widths';
import { useStableCallback } from '@cloudscape-design/component-toolkit/internal';
import { useUniqueId } from '../../internal/hooks/use-unique-id';
import { joinStrings } from '../../internal/utils/strings';

interface ResizerProps {
onDragMove: (newWidth: number) => void;
Expand Down Expand Up @@ -229,8 +228,8 @@ export function Resizer({
setResizerHasFocus(false);
}
}}
aria-roledescription="resize handle"
aria-labelledby={joinStrings(ariaLabelledby, separatorId)}
aria-roledescription={`resize handle ${headerCellWidth.toFixed(0)}`}
aria-labelledby={ariaLabelledby}
tabIndex={tabIndex}
data-focus-id={focusId}
/>
Expand Down

0 comments on commit a8b32fb

Please sign in to comment.