Skip to content

Commit

Permalink
Add aria-expanded prop to improve accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Feb 12, 2024
1 parent 94f4bae commit 00844ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-timerange-picker/src/TimeRangePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ const TimeRangePicker: React.FC<TimeRangePickerProps> = function TimeRangePicker
)}
{clockIcon !== null && !disableClock && (
<button
aria-expanded={isOpen || false}
aria-label={clockAriaLabel}
className={`${baseClassName}__clock-button ${baseClassName}__button`}
disabled={disabled}
Expand Down

0 comments on commit 00844ff

Please sign in to comment.