Sha256: b91ab4a5b8bb96f7d6129b65fb1e3039b542103b11fc210b6d7782733909c1af
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
module GOVUKDesignSystemFormBuilder module Containers class CheckBoxes < Base def initialize(builder, small:) @builder = builder @small = small end def html @builder.content_tag('div', class: check_boxes_classes, data: { module: 'checkboxes' }) do yield end end private def check_boxes_classes %w(govuk-checkboxes).tap do |c| c.push('govuk-checkboxes--small') if @small end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems