Sha256: 2c812205b1b58457cc8099171da237b5eb410f7a9426390151f5442b90d2c14d
Contents?: true
Size: 704 Bytes
Versions: 40
Compression:
Stored size: 704 Bytes
Contents
<% add_gem_component_stylesheet("hint") local_assigns[:id] ||= "hint-#{SecureRandom.hex(4)}" is_radio_label_hint ||= false right_to_left ||= false shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns) 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 component_helper.add_class(shared_helper.get_margin_bottom) if [*0..9].include?(local_assigns[:margin_bottom]) %> <%= tag.div(**component_helper.all_attributes, dir: right_to_left ? "rtl" : nil) do %> <%= text %> <% end %>
Version data entries
40 entries across 40 versions & 1 rubygems