Sha256: f40239e09d314d22d998560031b0cbe5dba058c6564c8c25b6c3d5a6515e0e85
Contents?: true
Size: 974 Bytes
Versions: 6
Compression:
Stored size: 974 Bytes
Contents
<% href ||= nil number ||= nil label ||= nil href ||= nil data_attributes ||= nil classes = ["gem-c-big-number__value"] if label.nil? && href classes << "gem-c-big-number__value--decorated" end %> <% if number %> <% big_number_value = capture do %> <%= tag.span class: classes, data: href ? nil : data_attributes do %> <%= number %> <% end %> <% unless label.nil? %> <% # add a virtual space here to handle screen readers printing dictations without a space between the number and the label %> <span class="govuk-visually-hidden"> </span> <span class="gem-c-big-number__label"> <%= label %> </span> <% end %> <% end %> <%= tag.div class: "gem-c-big-number" do %> <% unless href.nil? %> <%= link_to big_number_value, href, class: "govuk-link gem-c-big-number__link", data: data_attributes %> <% else %> <%= big_number_value %> <% end %> <% end %> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems