Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit 6342fd5

Browse files
authored
Merge pull request #417 from nating/tabindex
feat(Button): add tabIndex property
2 parents adb30fb + c0dc588 commit 6342fd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/Button/Button.react.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type PropsForAll = {|
2424
+icon?: string,
2525
+social?: string,
2626
+loading?: boolean,
27+
+tabIndex?: number,
2728
+isDropdownToggle?: boolean,
2829
+to?: string,
2930
+isOption?: boolean,
@@ -68,6 +69,7 @@ const Button = (props: Props): React.Node => {
6869
icon,
6970
social = "",
7071
loading,
72+
tabIndex,
7173
isDropdownToggle,
7274
isOption,
7375
rootRef,
@@ -107,6 +109,7 @@ const Button = (props: Props): React.Node => {
107109
onMouseLeave: onMouseLeave,
108110
onPointerEnter: onPointerEnter,
109111
onPointerLeave: onPointerLeave,
112+
tabIndex: tabIndex,
110113
};
111114

112115
const childrenForAll = (

0 commit comments

Comments
 (0)