From ab2b3a26716d4ce5987310205dd2b5e1f1290912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 7 Feb 2021 15:19:49 +0100 Subject: [PATCH] Improve help messages in SDG selector Hopefully now it's a bit more obvious that SDGs can be selected by clicking on them and that the field to select goals and the field to select targets/goals are related (since they're now part of the same fieldset). --- .../stylesheets/sdg/related_list_selector.scss | 12 +++++++++++- .../sdg/related_list_selector_component.html.erb | 15 +++++++-------- .../sdg/related_list_selector_component.rb | 4 ++++ config/locales/en/activerecord.yml | 1 - config/locales/en/sdg.yml | 3 ++- config/locales/es/activerecord.yml | 1 - config/locales/es/sdg.yml | 3 ++- spec/system/sdg_management/relations_spec.rb | 8 ++++---- 8 files changed, 30 insertions(+), 17 deletions(-) diff --git a/app/assets/stylesheets/sdg/related_list_selector.scss b/app/assets/stylesheets/sdg/related_list_selector.scss index 684ef2022..9e4f8c0ad 100644 --- a/app/assets/stylesheets/sdg/related_list_selector.scss +++ b/app/assets/stylesheets/sdg/related_list_selector.scss @@ -2,6 +2,10 @@ @include grid-column-gutter; clear: both; + > legend { + margin-bottom: 0; + } + .amsify-suggestags-area .amsify-select-tag { color: $white; @@ -17,7 +21,8 @@ @include sdg-goal-list($spacing); legend { - @include element-invisible; + font-weight: normal; + font-style: italic; } label { @@ -46,6 +51,11 @@ } } + label { + font-weight: normal; + font-style: italic; + } + .input-section { margin-bottom: 2 * $line-height / 3; } diff --git a/app/components/sdg/related_list_selector_component.html.erb b/app/components/sdg/related_list_selector_component.html.erb index 24e408e44..a1bbca60e 100644 --- a/app/components/sdg/related_list_selector_component.html.erb +++ b/app/components/sdg/related_list_selector_component.html.erb @@ -1,9 +1,9 @@ -