Skip to content

Commit

Permalink
fix: fix verticalitem icon not allowing to click item (#2514)
Browse files Browse the repository at this point in the history
* fix: fix verticalitem icon not allowing to click item

* fix: add icon to href variant
  • Loading branch information
HellWolf93 committed Oct 31, 2022
1 parent 31a90cd commit 4148b22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/VerticalItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ function Item(props) {
tabIndex={resolveTabIndex()}
isSelected={isSelected}
>
<RenderIf isTrue={icon}>
<StyledIcon>{icon}</StyledIcon>
</RenderIf>
<ItemContent label={label} notification={notification} />
</StyledAnchor>
</RenderIf>
Expand All @@ -79,12 +82,12 @@ function Item(props) {
tabIndex={resolveTabIndex()}
isSelected={isSelected}
>
<RenderIf isTrue={icon}>
<StyledIcon>{icon}</StyledIcon>
</RenderIf>
<ItemContent label={label} notification={notification} />
</StyledButton>
</RenderIf>
<RenderIf isTrue={icon}>
<StyledIcon>{icon}</StyledIcon>
</RenderIf>
</StyledLi>
);
}
Expand Down

0 comments on commit 4148b22

Please sign in to comment.