A11y: Add aria label to opening hours table, see #1181

This commit is contained in:
Pieter Vander Vennet 2023-12-15 18:14:21 +01:00
parent af4d9bb2bf
commit b7175384f9
6 changed files with 296 additions and 60 deletions

View file

@ -819,13 +819,8 @@ export default class SpecialVisualizations {
example:
"A normal opening hours table can be invoked with `{opening_hours_table()}`. A table for e.g. conditional access with opening hours can be `{opening_hours_table(access:conditional, no @ &LPARENS, &RPARENS)}`",
constr: (state, tagSource: UIEventSource<any>, args) => {
return new OpeningHoursVisualization(
tagSource,
state,
args[0],
args[1],
args[2]
)
const [key, prefix, postfix] = args
return new OpeningHoursVisualization(tagSource, state, key, prefix, postfix)
},
},
{