@@ -193,7 +193,9 @@ export const DamagesSection = ({ fd }) => {
193
193
< >
194
194
< Box py = { 2 } >
195
195
< Box position = "relative" >
196
- < Typography variant = "h6" > Risk</ Typography >
196
+ < Typography variant = "h6" component = "h2" >
197
+ Risk
198
+ </ Typography >
197
199
< IconButton
198
200
sx = { {
199
201
position : 'absolute' ,
@@ -210,9 +212,9 @@ export const DamagesSection = ({ fd }) => {
210
212
</ Box >
211
213
{ hazards . length ? (
212
214
< FormControl fullWidth sx = { { my : 2 } } disabled = { hazards . length === 1 } >
213
- < InputLabel > Hazard</ InputLabel >
215
+ < InputLabel id = { `feature- ${ fd . id } -hazard` } > Hazard</ InputLabel >
214
216
< Select
215
- label = "Hazard"
217
+ labelId = { `feature- ${ fd . id } -hazard` }
216
218
value = { selectedHazard ?? '' }
217
219
onChange = { ( e ) => setSelectedHazard ( e . target . value as string ) }
218
220
>
@@ -227,7 +229,9 @@ export const DamagesSection = ({ fd }) => {
227
229
{ selectedData ? (
228
230
< >
229
231
< Box mt = { 1 } >
230
- < Typography variant = "subtitle2" > Expected Annual Damages</ Typography >
232
+ < Typography component = "h3" variant = "subtitle2" >
233
+ Expected Annual Damages
234
+ </ Typography >
231
235
< ExpectedDamageChart
232
236
data = { {
233
237
table : selectedData ,
@@ -245,7 +249,9 @@ export const DamagesSection = ({ fd }) => {
245
249
</ Box >
246
250
{ has_eael ? (
247
251
< Box mt = { 1 } >
248
- < Typography variant = "subtitle2" > Expected Annual Economic Losses</ Typography >
252
+ < Typography component = "h3" variant = "subtitle2" >
253
+ Expected Annual Economic Losses
254
+ </ Typography >
249
255
< ExpectedDamageChart
250
256
data = { {
251
257
table : selectedData ,
@@ -274,7 +280,9 @@ export const DamagesSection = ({ fd }) => {
274
280
</ Box >
275
281
< Box py = { 2 } >
276
282
< Box position = "relative" >
277
- < Typography variant = "h6" > Return Period Damages</ Typography >
283
+ < Typography variant = "h6" component = "h2" >
284
+ Return Period Damages
285
+ </ Typography >
278
286
< IconButton
279
287
sx = { {
280
288
position : 'absolute' ,
@@ -295,9 +303,9 @@ export const DamagesSection = ({ fd }) => {
295
303
</ Box >
296
304
{ epochs . length ? (
297
305
< FormControl fullWidth sx = { { my : 2 } } disabled = { epochs . length === 1 } >
298
- < InputLabel > Epoch</ InputLabel >
306
+ < InputLabel id = { `feature- ${ fd . id } -epoch` } > Epoch</ InputLabel >
299
307
< Select
300
- label = "Epoch"
308
+ labelId = { `feature- ${ fd . id } -epoch` }
301
309
value = { selectedEpoch ?? '' }
302
310
onChange = { ( e ) => setSelectedEpoch ( e . target . value as string ) }
303
311
>
0 commit comments