File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import SvgIcon from '../svg-icon/svg-icon';
77import FlexRow from '../flex-row/flex-row' ;
88import { matchSize } from '../../utils/match-size' ;
99import Tooltip from '../tooltip/tooltip' ;
10+ import InfoIcon from '../../assets/icons/ic-info.svg' ;
1011
1112/* eslint-disable-next-line */
1213export interface TabMenuItemProps extends ButtonProps , ActivableProps {
@@ -92,9 +93,7 @@ export function TabMenuItem(props: TabMenuItemProps) {
9293 < StyledButton color = "utility" { ...props } >
9394 < FlexRow gap = { 3 } align = { 'center' } >
9495 { props . children }
95- { props . tooltip && (
96- < SvgIcon width = { 17 } height = { 16 } src = "assets/icons/ic-info.svg" />
97- ) }
96+ { props . tooltip && < SvgIcon width = { 17 } height = { 16 } src = { InfoIcon } /> }
9897 </ FlexRow >
9998 </ StyledButton >
10099 </ Tooltip >
Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ const Template: StoryFn<typeof TabMenu> = (args) => (
3030 Tab 1
3131 </ TabMenuItem >
3232 < TabMenuItem key = { 2 } > Tab 2</ TabMenuItem >
33- < TabMenuItem key = { 3 } > Tab 3</ TabMenuItem >
33+ < TabMenuItem key = { 3 } tooltip = { 'tooltip text' } >
34+ Tab 3
35+ </ TabMenuItem >
3436 </ TabMenu >
3537) ;
3638
You can’t perform that action at this time.
0 commit comments