Skip to content

Commit

Permalink
PR comment for class name
Browse files Browse the repository at this point in the history
  • Loading branch information
mmazanec22 authored and arinchoi03 committed Feb 6, 2025
1 parent 3728efa commit d65dd51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ legend + p {
clear: both;
}

.cfa-radiogroup-element {
.honeycrisp-radiogroup {
clear: both;
}

Expand Down
2 changes: 1 addition & 1 deletion app/helpers/cfa/styleguide/cfa_form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def standard_options
end

def cfa_radio_button(method, collection, layouts)
classes = (layouts.map { |layout| "input-group--#{layout}" } << "cfa-radiogroup-element").join(" ")
classes = (layouts.map { |layout| "input-group--#{layout}" } << "honeycrisp-radiogroup").join(" ")
options = { class: classes }

radiogroup_tag = @template.tag(:div, options, true)
Expand Down
4 changes: 2 additions & 2 deletions spec/helpers/cfa_form_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class SampleForm < Cfa::Styleguide::FormExample
Do you live in Arapahoe County?
</legend>
<p class="text--help" id="form_selected_county_location__help-text">This is help text.</p>
<div class="input-group--block cfa-radiogroup-element">
<div class="input-group--block honeycrisp-radiogroup">
<label class="radio-button"><div class="field_with_errors"><input type="radio" value="arapahoe" name="form[selected_county_location]" id="form_selected_county_location_arapahoe"/></div> Yes </label>
<label class="radio-button"><div class="field_with_errors"><input type="radio" value="not_arapahoe" name="form[selected_county_location]" id="form_selected_county_location_not_arapahoe"/></div> No </label>
<label class="radio-button"><div class="field_with_errors"><input type="radio" value="not_sure" name="form[selected_county_location]" id="form_selected_county_location_not_sure"/></div> I'm not sure </label>
Expand Down Expand Up @@ -387,7 +387,7 @@ class SampleForm < Cfa::Styleguide::FormExample
<div class="question-with-follow-up__question">
<fieldset class="form-group form-group--error" aria-describedby="form_hourly__errors">
<legend class="form-question "> Do you work hourly? </legend>
<div class="input-group--block cfa-radiogroup-element">
<div class="input-group--block honeycrisp-radiogroup">
<label class="radio-button"><div class="field_with_errors"><input data-follow-up="#hourly-first-follow-up" type="radio" value="yes" name="form[hourly]" id="form_hourly_yes" /></div> Yes </label>
<label class="radio-button"><div class="field_with_errors"><input data-follow-up="#hourly-second-follow-up" type="radio" value="no" name="form[hourly]" id="form_hourly_no" /></div> No </label>
</div>
Expand Down

0 comments on commit d65dd51

Please sign in to comment.