From 49e0138cd1480a7b3be8c7e2614bf86641ba02b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 22 Jun 2021 21:53:22 +0200 Subject: [PATCH] Fix label in related content form It didn't have a `for` attribute and so it wasn't correctly associated with its input. That means clicking on / touching the label didn't have the effect of focusing on the field, and screen readers wouldn't announce the label. --- app/views/relationable/_form.html.erb | 2 +- spec/shared/system/relationable.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/relationable/_form.html.erb b/app/views/relationable/_form.html.erb index b0ec72f08..2fc1b69ae 100644 --- a/app/views/relationable/_form.html.erb +++ b/app/views/relationable/_form.html.erb @@ -3,7 +3,7 @@ <%= form_tag related_contents_path, method: :post, id: "related_content", "data-toggler": "unused-toggle-class" do %> - +