module Golden::Theme::Foundation::RevealModalHelper

Public Instance Methods

foundation_modal_close_button(options = {}) click to toggle source
# File lib/golden/theme/foundation/reveal_modal_helper.rb, line 45
def foundation_modal_close_button options = {}
  html_class = options.delete :class
  options = {
    type: 'button',
    name: nil,
    data: { dismiss: 'modal' },
    class: "modal-close button #{html_class}".strip
  }
  button_tag t('helpers.close'), options
end
foundation_modal_close_icon() click to toggle source
# File lib/golden/theme/foundation/reveal_modal_helper.rb, line 56
def foundation_modal_close_icon
  options = {
    class: 'close-reveal-modal'
  }
  link_to '×'.html_safe, '#', options
end