app/components/coco/app/elements/menu/menu.rb in coveragebook_components-0.7.10 vs app/components/coco/app/elements/menu/menu.rb in coveragebook_components-0.8.0.beta.1

- old
+ new

@@ -3,12 +3,13 @@ module Elements class Menu < Coco::Component include Concerns::ActsAsButtonGroup include Concerns::AcceptsOptions - accepts_option :size, from: [:sm, :md, nil], default: :sm + accepts_option :size, from: [:xs, :sm, :md, nil], default: :sm renders_many :htmls, ->(*args, **kwargs, &block) do + init_button_group items << block.call end before_render do args[:resize]&.each { set_tag_data_attr("size-#{_1}", _2) }