Class: Playbook::PbLegend::Legend

Inherits:
Object
  • Object
show all
Includes:
Playbook::Props
Defined in:
app/pb_kits/playbook/pb_legend/legend.rb

Instance Method Summary collapse

Methods included from Playbook::Props

#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values

Instance Method Details

#body_colorObject



16
17
18
# File 'app/pb_kits/playbook/pb_legend/legend.rb', line 16

def body_color
  dark ? "lighter" : "light"
end

#classnameObject



20
21
22
# File 'app/pb_kits/playbook/pb_legend/legend.rb', line 20

def classname
  generate_classname("pb_legend_kit", color)
end