Skip to content

Commit dc4a5ae

Browse files
committed
minor #1145 Update _comment_form.html.twig (Chi-teck)
This PR was merged into the master branch. Discussion ---------- Update _comment_form.html.twig Hiding the textarea label with CSS makes no sense here. We could simply remove the call `form_label` instead. However I think it makes sense to keep the label for assistive technologies. Commits ------- 7629b03 Update _comment_form.html.twig
2 parents 3778016 + 7629b03 commit dc4a5ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/blog/_comment_form.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{{ form_errors(form) }}
2323

2424
<div class="form-group {% if not form.content.vars.valid %}has-error{% endif %}">
25-
{{ form_label(form.content, 'label.content', {label_attr: {class: 'hidden'}}) }}
25+
{{ form_label(form.content, 'label.content', {label_attr: {class: 'sr-only'}}) }}
2626

2727
{# Render any errors for the "content" field (e.g. when a class property constraint failed) #}
2828
{{ form_errors(form.content) }}

0 commit comments

Comments
 (0)