Sha256: d0169cd50452b14b6d68297c660b5dcbb68233ddf91296f892c6222d8e3eb883
Contents?: true
Size: 609 Bytes
Versions: 217
Compression:
Stored size: 609 Bytes
Contents
module GovukPublishingComponents module AppHelpers class BrandHelper def initialize(brand) @brand = brand if brand end # Apply government organisation branding to individual components, specifically # link colour and border colour # see https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component_branding.md def brand_class "brand--#{@brand}" if @brand end def border_color_class "brand__border-color" if @brand end def color_class "brand__color" if @brand end end end end
Version data entries
217 entries across 217 versions & 1 rubygems