From 543418b56ecc14c9fdc52d21a2684216b160c82e Mon Sep 17 00:00:00 2001 From: Adam Jazairi Date: Mon, 31 Oct 2022 11:28:33 -0400 Subject: [PATCH] Move descriptive text of ProQuest opt-in outside of field label Why these changes are being introduced: During a11y review, we determined that interactive content is not advisable inside a label. Anchors and other interactive elements can confuse screen reader navigation within the label, and make it difficult for people to activate the corresponding form input. Relevant ticket(s): https://mitlibraries.atlassian.net/browse/ETD-602 How this addresses that need: This moves the bulk of the descriptive content outside of the field label, so the label is more direct in what it is asking of the user. This also adds a header to the ProQuest field, which Dhruti recommended. Side effects of this change: None. --- app/assets/stylesheets/thing.scss | 6 ++++++ app/views/thesis/_author_fields.html.erb | 21 +++++++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/thing.scss b/app/assets/stylesheets/thing.scss index 23e10167..a8b9e049 100644 --- a/app/assets/stylesheets/thing.scss +++ b/app/assets/stylesheets/thing.scss @@ -160,6 +160,12 @@ form.simple_form { margin-bottom: 1rem; font-weight: $fw-normal; } + .opt-border { + display: block; + border: .1px dotted; + margin-top: 1rem; + margin-bottom: 1rem; + } .radio.field-subitem { margin-top: 1rem; } diff --git a/app/views/thesis/_author_fields.html.erb b/app/views/thesis/_author_fields.html.erb index 2d84dbde..298f96da 100644 --- a/app/views/thesis/_author_fields.html.erb +++ b/app/views/thesis/_author_fields.html.erb @@ -1,8 +1,13 @@ -
- Consent to send thesis to ProQuest - <%= f.input :proquest_allowed, as: :radio_buttons, - collection: [['Yes', true], ['No', false]], - required: true, - validate_presence: true, - label: "We are conducting a pilot program to provide additional open access to MIT theses through ProQuest Dissertation & Theses Global (PQDT). The aim is to make theses more visible and discoverable.

There is no cost to you and your thesis will not be sent to ProQuest until it is published by MIT. See PQDT's Author Dissertations FAQs for more information about participating.

--

I would like the full-text of my thesis to be made openly available in ProQuest Dissertation & Theses Global.".html_safe %> -
+

Consent to send thesis to ProQuest

+
+

We are conducting a pilot program to provide additional open access to MIT theses through ProQuest Dissertation & Theses Global (PQDT). The aim is to make theses more visible and discoverable.

+

There is no cost to you and your thesis will not be sent to ProQuest until it is published by MIT. See PQDT's Author Dissertations FAQs for more information about participating.

+
+ ProQuest consent * + <%= f.input :proquest_allowed, as: :radio_buttons, + collection: [['Yes', true], ['No', false]], + required: true, + validate_presence: true, + label: "I would like the full-text of my thesis to be made openly available in ProQuest Dissertation & Theses Global.".html_safe %> +
+