File tree 3 files changed +23
-12
lines changed
3 files changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ import ParticipationEvolutionIcon from './participation-evolution-icon';
93
93
{{#if @ campaign.multipleSendings }}
94
94
<PixTableColumn @ context ={{context }} >
95
95
<: header >
96
- <EvolutionHeader @ tooltipContent = {{ t " pages.campaign-results.table.evolution-tooltip.content " }} />
96
+ <EvolutionHeader />
97
97
</: header >
98
98
<: cell >
99
99
<ParticipationEvolutionIcon @ evolution ={{participation.evolution }} />
Original file line number Diff line number Diff line change
1
+ import PixIcon from ' @1024pix/pix-ui/components/pix-icon' ;
2
+ import PixTooltip from ' @1024pix/pix-ui/components/pix-tooltip' ;
1
3
import { t } from ' ember-intl' ;
2
4
3
- import TooltipWithIcon from ' ../../ui/tooltip-with-icon' ;
4
-
5
5
<template >
6
6
<span class =" evolution-header" >
7
-
8
7
{{t " pages.campaign-results.table.column.evolution" }}
9
-
10
- <TooltipWithIcon
11
- @ iconName =" help"
12
- @ content ={{@ tooltipContent }}
13
- @ ariaHiddenIcon ={{ true }}
14
- class =" tooltip-with-icon-small"
15
- />
8
+ <PixTooltip @ id =" evolution-tooltip" @ position =" left" @ isInline ={{ true }} >
9
+ <: triggerElement >
10
+ <PixIcon
11
+ @ name =" help"
12
+ @ plainIcon ={{ true }}
13
+ aria-hidden =" true"
14
+ tabindex =" 0"
15
+ aria-label ={{t " components.certificability-tooltip.aria-label" }}
16
+ aria-describedby =" evolution-tooltip"
17
+ />
18
+ </: triggerElement >
19
+ <: tooltip >
20
+ {{t " pages.campaign-results.table.evolution-tooltip.content" }}
21
+ </: tooltip >
22
+ </PixTooltip >
16
23
</span >
17
24
</template >
Original file line number Diff line number Diff line change @@ -16,9 +16,13 @@ export default class Tooltip extends Component {
16
16
return this .intl .t (' components.certificability-tooltip.from-collect-notice' );
17
17
}
18
18
19
+ get position () {
20
+ return this .args .position ? this .args .position : ' bottom-left' ;
21
+ }
22
+
19
23
<template >
20
24
<div class =" certificability-tooltip" >
21
- <PixTooltip @ id =" column-is-certifiable-informations" @ position =" top-left " @ isWide ={{ true }} >
25
+ <PixTooltip @ id =" column-is-certifiable-informations" @ position ={{ this .position }} @ isWide ={{ true }} >
22
26
<: triggerElement >
23
27
<PixIcon
24
28
@ name =" help"
You can’t perform that action at this time.
0 commit comments