@@ -82,9 +82,13 @@ const FrequencyGraphLegend = ({
8282 < ICHelpOutline className = "icon-dim-20 ml-8 dc__vertical-align-middle mr-5" />
8383 </ span >
8484 </ Tooltip >
85- < span className = "cursor" onClick = { setFrequencyMetric } >
85+ < button
86+ type = "button"
87+ className = "dc__no-border p-0 m-0 dc__transparent--unstyled"
88+ onClick = { setFrequencyMetric }
89+ >
8690 { renderCategoryTag ( frequencyBenchmark . name ) } { ' ' }
87- </ span >
91+ </ button >
8892 </ p >
8993 < p className = "graph-legend__primary-value" >
9094 < span className = "mr-10" > { frequency } </ span >
@@ -93,14 +97,18 @@ const FrequencyGraphLegend = ({
9397 { failureRateBenchmark ?. targetName === 'ELITE' ? (
9498 < EliteCategoryMessage onClick = { setFrequencyMetric } />
9599 ) : (
96- < div className = "cursor" onClick = { setFrequencyMetric } >
100+ < button
101+ type = "button"
102+ className = "dc__no-border p-0 m-0 dc__transparent--unstyled flex left column"
103+ onClick = { setFrequencyMetric }
104+ >
97105 < p className = "graph-legend__secondary-label" >
98106 { frequencyBenchmark ?. targetName } (Target Benchmark)
99107 < span className = "mr-5" />
100108 < BenchmarkLine category = { frequencyBenchmark . targetName } />
101109 </ p >
102110 < p className = "graph-legend__secondary-value" > { frequencyBenchmark ?. targetValue } / day</ p >
103- </ div >
111+ </ button >
104112 ) }
105113 </ div >
106114 < div className = "w-50 dc__inline-block" style = { { verticalAlign : 'top' } } >
@@ -113,18 +121,26 @@ const FrequencyGraphLegend = ({
113121 < ICHelpOutline className = "icon-dim-20 ml-8 dc__vertical-align-middle mr-5" />
114122 </ span >
115123 </ Tooltip >
116- < span className = "cursor" onClick = { setFailureMetric } >
124+ < button
125+ type = "button"
126+ className = "dc__no-border p-0 m-0 dc__transparent--unstyled"
127+ onClick = { setFailureMetric }
128+ >
117129 { renderCategoryTag ( failureRateBenchmark ?. name ) } { ' ' }
118- </ span >
130+ </ button >
119131 </ p >
120132 < p className = "graph-legend__primary-value" > { failureRate } </ p >
121133 { failureRateBenchmark ?. name !== 'ELITE' ? (
122- < div className = "cursor" onClick = { setFailureMetric } >
134+ < button
135+ type = "button"
136+ className = "dc__no-border p-0 m-0 dc__transparent--unstyled flex left column"
137+ onClick = { setFailureMetric }
138+ >
123139 < p className = "graph-legend__secondary-label" >
124140 { failureRateBenchmark ?. targetName } (Target Benchmark)
125141 </ p >
126142 < p className = "graph-legend__secondary-value" > { failureRateBenchmark ?. targetValue } %</ p >
127- </ div >
143+ </ button >
128144 ) : (
129145 < EliteCategoryMessage onClick = { setFailureMetric } />
130146 ) }
@@ -172,23 +188,27 @@ const RecoveryAndLeadTimeGraphLegend = ({
172188 < ICHelpOutline className = "icon-dim-20 ml-8 dc__vertical-align-middle mr-5" />
173189 </ span >
174190 </ Tooltip >
175- < span className = "cursor " onClick = { setMetric } >
191+ < button type = "button" className = "dc__no-border p-0 m-0 dc__transparent--unstyled " onClick = { setMetric } >
176192 { renderCategoryTag ( benchmark ?. name ) } { ' ' }
177- </ span >
193+ </ button >
178194 </ p >
179195 < p className = "graph-legend__primary-value" >
180196 < span className = "mr-10" > { valueLabel } </ span >
181197 < ReferenceLineLegend />
182198 </ p >
183199 { benchmark ?. name !== 'ELITE' ? (
184- < div className = "cursor" onClick = { setMetric } >
200+ < button
201+ type = "button"
202+ className = "dc__no-border p-0 m-0 dc__transparent--unstyled flex left column"
203+ onClick = { setMetric }
204+ >
185205 < p className = "graph-legend__secondary-label" >
186206 { benchmark ?. targetName } (Target Benchmark)
187207 < span className = "mr-5" />
188208 < BenchmarkLine category = { benchmark . targetName } />
189209 </ p >
190210 < p className = "graph-legend__secondary-value" > { benchmark ?. targetLabel } </ p >
191- </ div >
211+ </ button >
192212 ) : (
193213 < EliteCategoryMessage className = "cursor" onClick = { setMetric } />
194214 ) }
0 commit comments