Skip to content

Commit 6627482

Browse files
Sojan VargheseSojan Varghese
Sojan Varghese
authored and
Sojan Varghese
committed
Added data-cy label for prev year button
1 parent 4ffaae9 commit 6627482

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/PickerPanel/PanelHeader.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ function PanelHeader<DateType extends object>(props: HeaderProps<DateType>) {
139139
<button
140140
type="button"
141141
aria-label="prev-year"
142+
data-cy="prev-year-button"
142143
onClick={() => onOffset(-1)}
143144
tabIndex={-1}
144145
className={classNames(prevBtnCls, disabledOffsetPrev && `${prevBtnCls}-disabled`)}

0 commit comments

Comments
 (0)