Merge pull request #4386 from consul/sdg-fieldset-fix

Fixing styles for the related list component
This commit is contained in:
Javi Martín
2021-03-08 12:56:29 +01:00
committed by GitHub
2 changed files with 9 additions and 4 deletions

View File

@@ -17,7 +17,6 @@
}
.goals {
@extend %sdg-goal-list-expanded;
+ label {
@include element-invisible;
@@ -27,6 +26,10 @@
font-weight: normal;
font-style: italic;
}
}
.goal-list {
@extend %sdg-goal-list-expanded;
input {
@include element-invisible;

View File

@@ -4,9 +4,11 @@
<div class="input-section">
<fieldset class="goals">
<legend><%= t("sdg.related_list_selector.goal_list", record: relatable_name) %></legend>
<div class="goal-list">
<%= f.collection_check_boxes(:sdg_goal_ids, goals, :id, :code) do |checkbox_form| %>
<%= goal_field(checkbox_form) %>
<% end %>
</div>
</fieldset>
<%= f.text_field :related_sdg_list,