File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
src/projects/detail/components/Accordion Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ import cn from 'classnames'
1111import IconX from '../../../../assets/icons/ui-x-mark.svg'
1212import IconCarretDown from '../../../../assets/icons/arrow-6px-carret-down-normal.svg'
1313
14+ import Tooltip from 'appirio-tech-react-components/components/Tooltip/Tooltip'
15+ import { TOOLTIP_DEFAULT_DELAY } from '../../../../config/constants'
16+
1417import './Accordion.scss'
1518
1619/**
@@ -132,7 +135,14 @@ class Accordion extends React.Component {
132135 return (
133136 < div styleName = { cn ( 'container' , { 'is-open' : isOpen } ) } >
134137 < button styleName = "header" onClick = { this . toggle } >
135- < h5 styleName = "title" > { title } </ h5 >
138+ < Tooltip theme = "light" tooltipDelay = { TOOLTIP_DEFAULT_DELAY } >
139+ < div className = "tooltip-target" >
140+ < h5 styleName = "title" > { title } </ h5 >
141+ </ div >
142+ < div className = "tooltip-body" >
143+ { title }
144+ </ div >
145+ </ Tooltip >
136146 < div styleName = "value" > { this . formatValue ( ) } </ div >
137147 < div styleName = "toggle" >
138148 { isOpen ? < IconX styleName = "toggle-icon" /> : < IconCarretDown styleName = "toggle-icon" /> }
Original file line number Diff line number Diff line change 1919 display : none ;
2020 }
2121
22+ :global .Tooltip {
23+ width : 180px ;
24+
25+ .tooltip-target {
26+ cursor : pointer ;
27+ }
28+ }
29+
2230 & + & {
2331 margin-top : 2 * $base-unit ;
2432 }
4048
4149.title {
4250 @include roboto-bold ;
43- flex : 0 0 180px ;
4451 font-size : $tc-label-lg ;
4552 overflow : hidden ;
4653 padding : 0 2 * $base-unit ;
You can’t perform that action at this time.
0 commit comments