Module: Tenon::StyleguideHelper
- Defined in:
- app/helpers/tenon/styleguide_helper.rb
Instance Method Summary collapse
Instance Method Details
#color_span(color) ⇒ Object
7 8 9 |
# File 'app/helpers/tenon/styleguide_helper.rb', line 7 def color_span(color) content_tag(:span, color, class: "color-#{color}") end |
#color_spans(arr, join = ', ') ⇒ Object
3 4 5 |
# File 'app/helpers/tenon/styleguide_helper.rb', line 3 def color_spans(arr, join = ', ') arr.map{|c| color_span(c)}.join(join).html_safe end |
#expandable_toggle ⇒ Object
11 12 13 |
# File 'app/helpers/tenon/styleguide_helper.rb', line 11 def link_to i('keyboard_arrow_down'), '#', class: 'expand' end |