Skip Navigation

[Résolu] Accessibility problem with distance filter

This support ticket is created Il y a 2 années et 6 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Minesh Il y a 2 années et 6 mois.

Assisté par: Minesh.

Auteur
Publications
#2366753
2022-05-19_14-41-16.jpg

Implementing an distance filter gives a accessibility error. The form element doesn't have an label. I found a outdated support ticket with (https://toolset.com/forums/topic/accessibility-of-form-labels-on-input-and-select-controls/) a similar problem.

Is there already a good solution?

#2367527

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

When you add a distance filter, the whole distance filter UI is output by a single shortcode that is why it's not possible to use the same solution from the other ticket which you shared as reference where the solution mentioned is wrapping the shortcode in a label.

The possible solution could only be fixed by modifying the plugin source code that outputs the distance filter where we change the output markup to add labels etc. We are happy to report it to our internal system but you can not expect the solution very soon.

The only possible workaround could be you should add some custom JS to output the distance filter.

#2367567

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

We have reported internal ticket to improve this but in the mean time you should try to use the following patch that should help you to resolve your issue: https://toolset.com/patches/toolset-views-maps-distance-filter.php.zip

Download and unzip the file provided with the above path and replace the file with the same name at:

 plugins/toolset-maps/includes/

Note:
- Please note that if you update the Toolset Maps plugin, you will have to apply the patch again as its not yet included as permanent fix within the Toolset maps plugin.