diff --git a/hypha/apply/stream_forms/templates/stream_forms/heading_field.html b/hypha/apply/stream_forms/templates/stream_forms/heading_field.html index a61ebc28cab8a6efe0f2cd91a9cd2a8ee7559207..a54563e41d971afc2c62166e39164fdbbcdfe76c 100644 --- a/hypha/apply/stream_forms/templates/stream_forms/heading_field.html +++ b/hypha/apply/stream_forms/templates/stream_forms/heading_field.html @@ -1,3 +1,4 @@ +<div class="section-head"> {% if self.size == 'h2' %} <h2 id="{{ value.heading_text|slugify }}">{{ value.heading_text }} <a href="#{{ value.heading_text|slugify }}"> @@ -25,3 +26,4 @@ </a> </h4> {% endif %} +</div> diff --git a/hypha/static_src/src/javascript/apply/application-form-links-new-window.js b/hypha/static_src/src/javascript/apply/application-form-links-new-window.js index 17f405a50c601adf23b6af1f9ba9f20a4f09cda7..f705e48080371ad18038781a3ac27b3b2d943620 100644 --- a/hypha/static_src/src/javascript/apply/application-form-links-new-window.js +++ b/hypha/static_src/src/javascript/apply/application-form-links-new-window.js @@ -3,7 +3,7 @@ 'use strict'; // Make links on application forms open in a new window/tab. - $('.application-form').find('a').not('h2 > a').not('h3 > a').not('h4 > a').attr({ + $('.application-form').find('a').not('.section-head a').attr({ target: '_blank', rel: 'noopener noreferrer' }); diff --git a/hypha/static_src/src/sass/public/components/_section.scss b/hypha/static_src/src/sass/public/components/_section.scss index 6cd88e5ef9bae2229fbf2a0c0f1f70c0240a8710..28b264d1f0466ede13840b661eeea94b2ac90809 100644 --- a/hypha/static_src/src/sass/public/components/_section.scss +++ b/hypha/static_src/src/sass/public/components/_section.scss @@ -34,3 +34,17 @@ } } } + +.section-head{ + a { + display : none; + line-height: 30px; + vertical-align: middle; + } + + &:hover { + a { + display: inline; + } + } +}