Sha256: f72bfc64fe875a3da666f55ee6043cf96f78a363398f00e56cc4ad47e93c0b02

Contents?: true

Size: 301 Bytes

Versions: 55

Compression:

Stored size: 301 Bytes

Contents

<%
  id ||= "hint-#{SecureRandom.hex(4)}"
  shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)

  css_classes = %w( gem-c-hint govuk-hint )
  css_classes << (shared_helper.get_margin_bottom)
%>

<%= tag.span id: id, class: css_classes do %>
  <%= text %>
<% end %>

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
govuk_publishing_components-17.16.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.15.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.14.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.13.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.12.2 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.12.1 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.12.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.11.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.10.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.9.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.8.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.7.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.6.1 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.6.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.5.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.4.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.3.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.2.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.1.1 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-17.1.0 app/views/govuk_publishing_components/components/_hint.html.erb