Skip to content

Commit 0ca7703

Browse files
authored
Merge pull request #45 from afrisalyp/qa-accessibility
GenericLink add onkeydown event.
2 parents 2103291 + aec6149 commit 0ca7703

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/shared/components/GenericLink.jsx

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default function GenericLink(props) {
1919
enforceA,
2020
onClick,
2121
onMouseDown,
22+
onKeyDown,
2223
openNewTab,
2324
replace,
2425
routerLinkType,
@@ -37,6 +38,7 @@ export default function GenericLink(props) {
3738
href={to}
3839
onClick={onClick}
3940
onMouseDown={onMouseDown}
41+
onKeyDown={onKeyDown}
4042
rel="noopener noreferrer"
4143
target={openNewTab ? '_blank' : ''}
4244
>
@@ -72,6 +74,7 @@ GenericLink.defaultProps = {
7274
enforceA: false,
7375
onClick: null,
7476
onMouseDown: null,
77+
onKeyDown: null,
7578
openNewTab: false,
7679
replace: false,
7780
to: '',
@@ -83,6 +86,7 @@ GenericLink.propTypes = {
8386
enforceA: PT.bool,
8487
onClick: PT.func,
8588
onMouseDown: PT.func,
89+
onKeyDown: PT.func,
8690
openNewTab: PT.bool,
8791
replace: PT.bool,
8892
routerLinkType: PT.func.isRequired,

0 commit comments

Comments
 (0)