diff --git a/templates/field.html.twig b/templates/field.html.twig
index bcab668..cc43178 100644
--- a/templates/field.html.twig
+++ b/templates/field.html.twig
@@ -10,4 +10,8 @@
 ]) %}
 #}
 
-{% set attributes = attributes.addClass(classes) %}
\ No newline at end of file
+{% set attributes = attributes.addClass(classes) %}
+
+{# Ensures that the visually hidden option for field labels works correctly.
+   @todo: remove when https://www.drupal.org/node/2779919 is resolved. #}
+{%  set title_attributes = title_attributes.addClass(label_display == 'visually_hidden' ? 'visually-hidden') %}
