Skip to content

Commit

Permalink
Add object/attribute to field-specific fieldsets
Browse files Browse the repository at this point in the history
Refs #68
  • Loading branch information
peteryates committed Nov 16, 2019
1 parent 8e482a7 commit 4bc6fdf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(builder, object_name, attribute_name, hint_text:, legend:, small:

def html
Containers::FormGroup.new(@builder, @object_name, @attribute_name).html do
Containers::Fieldset.new(@builder, legend: @legend, described_by: [error_element.error_id, hint_element.hint_id]).html do
Containers::Fieldset.new(@builder, @object_name, @attribute_name, legend: @legend, described_by: [error_element.error_id, hint_element.hint_id]).html do
safe_join(
[
hint_element.html,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def initialize(builder, object_name, attribute_name, hint_text:, legend:, inline

def html
Containers::FormGroup.new(@builder, @object_name, @attribute_name).html do
Containers::Fieldset.new(@builder, legend: @legend, described_by: [error_element.error_id, hint_element.hint_id]).html do
Containers::Fieldset.new(@builder, @object_name, @attribute_name, legend: @legend, described_by: [error_element.error_id, hint_element.hint_id]).html do
safe_join(
[
hint_element.html,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(builder, object_name, attribute_name, collection, value_method:,

def html
Containers::FormGroup.new(@builder, @object_name, @attribute_name).html do
Containers::Fieldset.new(@builder, legend: @legend, described_by: [error_id, hint_id, supplemental_id]).html do
Containers::Fieldset.new(@builder, @object_name, @attribute_name, legend: @legend, described_by: [error_id, hint_id, supplemental_id]).html do
safe_join(
[
hint_element.html,
Expand Down
2 changes: 1 addition & 1 deletion lib/govuk_design_system_formbuilder/elements/date.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def initialize(builder, object_name, attribute_name, legend:, hint_text:, date_o

def html
Containers::FormGroup.new(@builder, @object_name, @attribute_name).html do
Containers::Fieldset.new(@builder, legend: @legend, described_by: [error_id, hint_id, supplemental_id]).html do
Containers::Fieldset.new(@builder, @object_name, @attribute_name, legend: @legend, described_by: [error_id, hint_id, supplemental_id]).html do
safe_join(
[
hint_element.html,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(builder, object_name, attribute_name, collection, value_method:,

def html
Containers::FormGroup.new(@builder, @object_name, @attribute_name).html do
Containers::Fieldset.new(@builder, legend: @legend, described_by: [error_id, hint_id, supplemental_id]).html do
Containers::Fieldset.new(@builder, @object_name, @attribute_name, legend: @legend, described_by: [error_id, hint_id, supplemental_id]).html do
safe_join(
[
hint_element.html,
Expand Down

0 comments on commit 4bc6fdf

Please sign in to comment.