Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
aria-label and aria-valuetext adjusted, role reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroshk authored and sdadn committed Oct 23, 2023
1 parent 95dfd27 commit 92ca8e2
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ const ColumnResizeHandle = (props) => {
<div
ref={resizeHandleRef}
draggable
role={isActive ? 'slider' : null}
role="slider"
tabIndex={-1}
aria-hidden={!isActive}
aria-valuemin={minimumWidth}
aria-valuenow={columnWidth}
aria-valuemax={maximumWidth}
aria-label={intl.formatMessage({ id: 'Terra.worklist-data-grid.resize-handle-template' }, { columnText })}
aria-valuetext={intl.formatMessage({ id: 'Terra.worklist-data-grid.resize-handle-value-text' }, { columnWidth })}
aria-valuemin={isActive ? minimumWidth : null}
aria-valuenow={isActive ? columnWidth : null}
aria-valuemax={isActive ? maximumWidth : null}
aria-label={isActive ? intl.formatMessage({ id: 'Terra.worklist-data-grid.resize-handle-template' }, { columnText }) : null}
aria-valuetext={isActive ? intl.formatMessage({ id: 'Terra.worklist-data-grid.resize-handle-value-text' }, { columnWidth }) : null}
onMouseDown={onMouseDown}
onMouseUp={onMouseUp}
onMouseEnter={fitToTable}
Expand Down

0 comments on commit 92ca8e2

Please sign in to comment.