Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Add margin below legend via .heading-medium class #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/govuk_elements_form_builder/form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def radio_inputs attribute, options
end

def fieldset_legend attribute
legend = content_tag(:legend) do
legend = content_tag(:legend, class: 'heading-medium') do
tags = [content_tag(
:span,
fieldset_text(attribute),
Expand Down
8 changes: 4 additions & 4 deletions spec/lib/govuk_elements_form_builder/form_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def expected_error_html method, type, attribute, name_value, label, error
expect_equal output, [
'<div class="form-group">',
'<fieldset>',
'<legend>',
'<legend class="heading-medium">',
'<span class="form-label-bold">',
'Where do you live?',
'</span>',
Expand Down Expand Up @@ -288,7 +288,7 @@ def expected_error_html method, type, attribute, name_value, label, error
expect_equal output, [
'<div class="form-group">',
'<fieldset class="inline">',
'<legend>',
'<legend class="heading-medium">',
'<span class="form-label-bold">',
'Do you already have a personal user account?',
'</span>',
Expand All @@ -315,7 +315,7 @@ def expected_error_html method, type, attribute, name_value, label, error
expect_equal output, [
'<div class="form-group error" id="error_person_gender">',
'<fieldset>',
'<legend>',
'<legend class="heading-medium">',
'<span class="form-label-bold">',
'Gender',
'</span>',
Expand Down Expand Up @@ -348,7 +348,7 @@ def expected_error_html method, type, attribute, name_value, label, error
expect_equal output, [
'<div class="form-group">',
'<fieldset>',
'<legend>',
'<legend class="heading-medium">',
'<span class="form-label-bold">',
'Which types of waste do you transport regularly?',
'</span>',
Expand Down