Sha256: b080289319fad2c949ad623cd94cd1736ec5aa19eccc25f4880c4c47883022e9

Contents?: true

Size: 709 Bytes

Versions: 14

Compression:

Stored size: 709 Bytes

Contents

<% class_name = '' unless local_variables.include? :class_name
   position_classes = comp.position.map {|p| "v-typography-position-#{p}"}.join(' ')
  level = %i(subheading display body).include?(type.to_sym) ? comp.level : nil
%>
<div id="<%= comp.id %>"
     class="mdc-typography--<%= "#{type}#{level}" %>
           <%= class_name %>
           <%= position_classes %>
           <%= 'v-actionable' if comp.events %>"
     style = "<%= "color: #{comp.color};" if comp.color %>"
     <%= erb :"components/event", :locals => {events: comp.events, parent_id: comp.event_parent_id} %>>
  <%= expand_text(comp.text) %></div>
<%= erb :"components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 views/mdc/components/typography.erb
voom-presenters-0.1.12 views/mdc/components/typography.erb
voom-presenters-0.1.11 views/mdc/components/typography.erb
voom-presenters-0.1.10 views/mdc/components/typography.erb
voom-presenters-0.1.9 views/mdc/components/typography.erb
voom-presenters-0.1.8 views/mdc/components/typography.erb
voom-presenters-0.1.7 views/mdc/components/typography.erb
voom-presenters-0.1.6 views/mdc/components/typography.erb
voom-presenters-0.1.5 views/mdc/components/typography.erb
voom-presenters-0.1.4 views/mdc/components/typography.erb
voom-presenters-0.1.3 views/mdc/components/typography.erb
voom-presenters-0.1.2 views/mdc/components/typography.erb
voom-presenters-0.1.1 views/mdc/components/typography.erb
voom-presenters-0.1.0 views/mdc/components/typography.erb