Sha256: d42a276612317db8a5975647d177989a95a6c589d70dc0f6355c86dddedd4c0c

Contents?: true

Size: 398 Bytes

Versions: 12

Compression:

Stored size: 398 Bytes

Contents

<%
  add_gem_component_stylesheet("hint")

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

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

<%= tag.div id: id, class: css_classes, dir: right_to_left ? "rtl" : nil do %>
  <%= text %>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
govuk_publishing_components-35.3.5 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-35.3.4 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-35.3.3 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-35.3.2 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-35.3.1 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-35.3.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-35.2.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-35.1.1 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-35.1.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-35.0.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-34.14.0 app/views/govuk_publishing_components/components/_hint.html.erb
govuk_publishing_components-34.13.0 app/views/govuk_publishing_components/components/_hint.html.erb