Skip Navigation

[Resolved] Accessibility problem with distance filter

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)

This topic contains 2 replies, has 2 voices.

Last updated by Minesh 1 year, 11 months ago.

Assisted by: Minesh.

Author
Posts
#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

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.