Sha256: 924ac21d97424e56358358e1c003c1fa1e4a16e43b4f78e0efb1e5c512633b95
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
<% button = GovukPublishingComponents::Presenters::ButtonHelper.new(local_assigns) %> <% start_icon = capture do %> <svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" role="presentation" focusable="false"> <path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z" /> </svg> <% end %> <% if button.start button_text = button.text + start_icon else button_text = button.text end %> <% if button.link? %> <%= link_to button_text, button.href, button.html_options %> <% else %> <%= content_tag :button, button_text, button.html_options %> <% end %> <% if button.info_text %> <%= tag.span button.info_text, class: "gem-c-button__info-text" %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
govuk_publishing_components-18.0.0 | app/views/govuk_publishing_components/components/_button.html.erb |