Sha256: bfe46e04d5774dd8d2351d936983b96d6a2d472fe4ba599e46ee524de884df9d
Contents?: true
Size: 611 Bytes
Versions: 472
Compression:
Stored size: 611 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/master/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
472 entries across 472 versions & 1 rubygems