x-govuk/govuk-components

View on GitHub
guide/lib/examples/common_options_helpers.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Examples
  module CommonOptionsHelpers
    def inset_text_with_classes
      <<~LINK
        = govuk_inset_text(classes: "govuk-!-font-weight-bold")
          | Some strong text
      LINK
    end

    def inset_text_with_html_attributes
      <<~LINK
        = govuk_inset_text(html_attributes: { lang: "en-GB",
                                              data: { demo: true },
                                              aria: { role: 'note' } })
          | Text with custom HTML attributes
      LINK
    end
  end
end