Sha256: b0de86b8c93fd7105b0ffcb53ecae4895ca1456f3c2effda7ed571e7487ee6a5

Contents?: true

Size: 501 Bytes

Versions: 9

Compression:

Stored size: 501 Bytes

Contents

<%
  add_gem_component_stylesheet("hint")

  local_assigns[:id] ||= "hint-#{SecureRandom.hex(4)}"
  is_radio_label_hint ||= false
  right_to_left ||= false

  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
  component_helper.add_class("gem-c-hint govuk-hint")
  component_helper.add_class("govuk-radios__hint") if is_radio_label_hint
%>
<%= tag.div(**component_helper.all_attributes, dir: right_to_left ? "rtl" : nil) do %>
  <%= text %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-51.0.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-50.0.1 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-50.0.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-49.1.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-49.0.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-48.0.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-47.0.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-46.4.0 app/views/govuk_publishing_components/components/_hint.html.erb