CMS Development

AMMehta
Participante | Parceiro Elite
Participante | Parceiro Elite

WCAG 2.0 Compliance Violation - blog comment fields are missing label

resolver

Blog comment input elements are missing a label attribute which is a WCAG violation. I am trying to make my website accessible. I cannot add the label attribute manually since blog_comments is a hubspot default module.

0 Avaliação positiva
1 Solução aceita
webdew
Solução
Orientador(a) | Parceiro Diamante
Orientador(a) | Parceiro Diamante

WCAG 2.0 Compliance Violation - blog comment fields are missing label

resolver

Hi @AMMehta ,

Use this code in your blog post. Template comments form will show and set layout accordingly.

{% if group.allow_comments %}
<div class="blog-comments">
{% module 'blog_comments'
path='@hubspot/blog_comments',
label="Blog comments"
%}
</div>
{% endif %}

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

 

Exibir solução no post original

0 Avaliação positiva
1 Resposta 1
webdew
Solução
Orientador(a) | Parceiro Diamante
Orientador(a) | Parceiro Diamante

WCAG 2.0 Compliance Violation - blog comment fields are missing label

resolver

Hi @AMMehta ,

Use this code in your blog post. Template comments form will show and set layout accordingly.

{% if group.allow_comments %}
<div class="blog-comments">
{% module 'blog_comments'
path='@hubspot/blog_comments',
label="Blog comments"
%}
</div>
{% endif %}

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

 

0 Avaliação positiva