Sha256: 6fd3ef1b444d9cd09f5f6916ff11f88ca2d5fa6d68a1d5e554e5d00d357a4110

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

<%
  text = text || yield
  describedby ||= nil
  role ||= nil
  heading_size = false unless ['s', 'm', 'l', 'xl'].include?(heading_size)

  legend_classes = %w(govuk-fieldset__legend)
  legend_classes << "govuk-fieldset__legend--#{heading_size}" if heading_size
%>
<%= tag.fieldset class: "gem-c-fieldset govuk-fieldset", aria: { describedby: describedby }, role: role do %>
  <%= tag.legend class: legend_classes do %>
    <%= legend_text %>
  <% end %>
  <%= text %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
govuk_publishing_components-21.2.0 app/views/govuk_publishing_components/components/_fieldset.html.erb