Skip to content

Commit

Permalink
[frontend] Fix the tooltip to buttons (#4230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwendoline-FAVRE-FELIX committed Sep 27, 2024
1 parent 4670daf commit e7fd737
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,18 @@ const StixDomainObjectAttackPatternsKillChainMatrixInline: FunctionComponent<Sti
<ViewColumnOutlined fontSize="small" color="primary" />
</Tooltip>
</ToggleButton>),
(<ToggleButton key="matrix-in-line" value="matrix-in-line" aria-label="matrix-in-line">
<Tooltip title={t_i18n('Matrix in line view')}>
(<Tooltip key="matrix-in-line" title={t_i18n('Matrix in line view')}>
<ToggleButton key="matrix-in-line" value="matrix-in-line" aria-label="matrix-in-line">
<FiligranIcon icon={ListViewIcon} size="small" color={currentView === 'matrix-in-line' ? 'secondary' : 'primary'} />
</Tooltip>
</ToggleButton>),
(<ToggleButton key="list" value="list" aria-label="list">
<Tooltip title={t_i18n('Kill chain view')}>
</ToggleButton>
</Tooltip>
),
(<Tooltip key="list" title={t_i18n('Kill chain view')}>
<ToggleButton key="list" value="list" aria-label="list">
<FiligranIcon icon={SublistViewIcon} size="small" color={currentView === 'list' ? 'secondary' : 'primary'} />
</Tooltip>
</ToggleButton>),
</ToggleButton>
</Tooltip>
),
(<ToggleButton key="courses-of-action" value="courses-of-action" aria-label="courses-of-action">
<Tooltip title={t_i18n('Courses of action view')}>
<ProgressWrench color="primary" fontSize="small" />
Expand Down

0 comments on commit e7fd737

Please sign in to comment.