Align styling to closer match design

This commit is contained in:
rebuilt 2022-08-15 13:46:19 -07:00
parent a4dbeb6718
commit 191abdbd50
3 changed files with 18 additions and 13 deletions

View file

@ -3,10 +3,13 @@
<div class="bg-gray p-3" data-controller="analyze">
<% @graphs.each do |graph| %>
<div>
<input type="radio" id="<%= graph.value %>" name="graph"
value="<%= base_url %>"
data-action="click->analyze#refresh"
<%= graph.value == @graph.value ? "checked" : "" %>>
<input type="radio"
id="<%= graph.value %>"
class="form-check-input"
name="graph"
value="<%= base_url %>"
data-action="click->analyze#refresh"
<%= graph.value == @graph.value ? "checked" : "" %>>
<label for="<%= graph.value %>"><%= graph.to_s %></label>
</div>
<% end %>
@ -14,10 +17,10 @@
<p class="sub-header-5 mt-3 font-size-14"> Select a group </p>
<% @races.each do |race | %>
<div class="d-flex <%= race.slug %>">
<div class="d-flex align-items-center <%= race.slug %>">
<input
id="<%= race.slug %>"
class="m-3 race-checkbox"
class="m-3 race-checkbox form-check-input"
type="checkbox"
name="race-checkbox"
value="<%= base_url %>"

View file

@ -2,6 +2,7 @@
<% available_academic_years.each_with_index do | year, index | %>
<div class="d-flex justify-content-start align-items-center mt-1" data-controller="analyze">
<input type="checkbox"
class="form-check-input"
id="<%= year.range %>"
name="year-checkbox"
value="<%= analyze_subcategory_link(district: district, school: school, academic_year: academic_year, category: category, subcategory: subcategory) %>"