summaryrefslogtreecommitdiff
path: root/lib/sidebars/concerns/link_with_html_options.rb
blob: 4ca748e0a712a609d450f54f0f36fc82e18b7af9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Sidebars
  module Concerns
    module LinkWithHtmlOptions
      # add on specific items as the pertain to `link_to` objects specifically
      def link_html_options
        container_html_options.tap do |html_options|
          html_options[:class] = [*html_options[:class], 'gl-link'].join(' ')
        end
      end
    end
  end
end