Class: Blacklight::Icons::LineComponent

Inherits:
IconComponent
  • Object
show all
Defined in:
app/components/blacklight/icons/line_component.rb

Instance Method Summary collapse

Instance Method Details

#svgObject



8
9
10
11
12
13
14
15
16
# File 'app/components/blacklight/icons/line_component.rb', line 8

def svg
  <<~SVG
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
    	<title>#{title}</title>
    	<path fill="none" stroke="#6c757d" stroke-miterlimit="10" stroke-width="1.52" d="M24.9.76h6.34v6.33h-6.33V.76zM.76 24.9h6.33v6.34H.76v-6.33z"/>
    	<path fill="none" stroke="#6c757d" stroke-miterlimit="10" stroke-width="3.04" d="M7.1 24.9L24.9 7.1"/>
    </svg>
  SVG
end

#titleObject



18
19
20
21
# File 'app/components/blacklight/icons/line_component.rb', line 18

def title
  key = "blacklight.icon.#{name}"
  t(key)
end