[Request] Render question titles in <label> instead of <h5>
See original GitHub issueAre you requesting a feature, reporting a bug or ask a question?
Feature
What is the current behavior?
The titles of form fields are rendered within a <h5>
and <span>
tag.
Taken from Vue version:
<h5><span style="position: static;"><span style="position: static;">Phone</span></span></h5>
What is the expected behavior?
For screen readers and usability it would be better if this could be rendered in a <label for="{fieldId}">
tag.
<label for="phone_field_id">Phone</label>
- surveyjs platform (angular or react or jquery or knockout or vue): Vue
- surveyjs version: v1.0.7
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
H5 Scripting - Developing for Infor Smart Office
If you are using TypeScript, you can simply make the variables block-scoped by using 'let' instead of 'var' when you loop through the...
Read more >title - HTML: HyperText Markup Language - MDN Web Docs
The title global attribute contains text representing advisory information related to the element it belongs to.
Read more >Unable to render images in caraousel from database ...
I am trying to render images from my database to carousel in Django. ... CaraouselData.objects.all() return render(request, 'index.html', ...
Read more >Header Tags: A Simple (But Complete) Guide To H1, H2 ...
It's contents are not rendered on the page but are critical for SEO. It's the place in your code where your Page Title,...
Read more >Documentation Style Guide - GitLab Docs
For style questions, mention @tw-style in an issue or merge request. ... It also fails when a document has non-standard Markdown (which may...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the one who is interested. The following event listener will do the trick by replacing the
h5
tag with alabel
tag.Above solution is not working because of: https://github.com/surveyjs/surveyjs/issues/930