Fix labels in color selection
We were using the same label for two elements, but the label was only assigned to one of them.
This commit is contained in:
@@ -45,12 +45,12 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="small-12 medium-6 large-3 column">
|
||||
<%= f.label :background_color, nil, for: "background_color_input" %>
|
||||
<div class="small-12 medium-6 large-3 column background-color-inputs">
|
||||
<%= f.label :background_color, nil, for: "background_color_input", id: "background_color_label" %>
|
||||
<p class="help-text"><%= t("admin.shared.color_help") %></p>
|
||||
<div class="row collapse">
|
||||
<div class="small-12 medium-6 column">
|
||||
<%= f.text_field :background_color, label: false, type: :color %>
|
||||
<%= f.text_field :background_color, label: false, type: :color, "aria-labelledby": "background_color_label" %>
|
||||
</div>
|
||||
<div class="small-12 medium-6 column">
|
||||
<%= f.text_field :background_color, label: false, id: "background_color_input" %>
|
||||
@@ -58,12 +58,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-6 large-3 column end">
|
||||
<%= f.label :font_color, nil, for: "font_color_input" %>
|
||||
<div class="small-12 medium-6 large-3 column end font-color-inputs">
|
||||
<%= f.label :font_color, nil, for: "font_color_input", id: "font_color_label" %>
|
||||
<p class="help-text"><%= t("admin.shared.color_help") %></p>
|
||||
<div class="row collapse">
|
||||
<div class="small-12 medium-6 column">
|
||||
<%= f.text_field :font_color, label: false, type: :color %>
|
||||
<%= f.text_field :font_color, label: false, type: :color, "aria-labelledby": "font_color_label" %>
|
||||
</div>
|
||||
<div class="small-12 medium-6 column">
|
||||
<%= f.text_field :font_color, label: false, id: "font_color_input" %>
|
||||
|
||||
Reference in New Issue
Block a user