Skip to content

Commit ccdef0c

Browse files
author
Hector Arce De Las Heras
committed
Include prop tabIndex on Icon component
1 parent ed2642b commit ccdef0c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/icon/icon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const IconBasicComponent = (
3535
aria-label={props['aria-label'] || altText}
3636
data-testid={iconProps.dataTestId}
3737
disabled={disabled}
38+
tabIndex={tabIndex}
3839
type={ButtonType.BUTTON}
3940
onClick={onClick}
4041
>

src/components/inputDropdown/stories/inputDropdown.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const commonArgs: IInputDropdown = {
4646
loader: {
4747
altText: 'loading',
4848
},
49-
icon: { icon: ICONS.ICON_CHEVRON_DOWN },
49+
icon: { icon: ICONS.ICON_CHEVRON_DOWN, tabIndex: -1 },
5050
optionList: {
5151
options: [
5252
{

0 commit comments

Comments
 (0)