Method: Playbook::PbCollapsible::CollapsibleIcon#icon_color

Defined in:
app/pb_kits/playbook/pb_collapsible/collapsible_icon.rb

#icon_colorObject

[View source]

29
30
31
32
33
34
# File 'app/pb_kits/playbook/pb_collapsible/collapsible_icon.rb', line 29

def icon_color
  return "" if color.nil?

  color_object = { light: "#687887", lighter: "#C1CDD6", link: "#0056CF", success: "#00CA74", error: "#FF2229", default: "#242B42" }
  color_object[color.to_sym]
end