Sha256: 07b09081e34547d3954ad87adf3770af6145583c8d256e1aceae7035698fdfce

Contents?: true

Size: 444 Bytes

Versions: 562

Compression:

Stored size: 444 Bytes

Contents

<% if object.is_svg? %>
  <%= object.render_svg %>
<% elsif object.valid_emoji? %>
  <span class="pb_icon_kit_emoji">
    <%= object.icon.html_safe %>
  </span>
<% else %>
  <%= content_tag(:i, nil,
      id: object.id,
      data: object.data,
      class: object.classname,
      **combined_html_options
  ) %>
  <%= content_tag(:span, nil,
      aria: { label: "#{object.icon} icon" }.merge(object.aria),
      hidden: true
  ) %>
<% end %>

Version data entries

562 entries across 562 versions & 1 rubygems

Version Path
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2404 app/pb_kits/playbook/pb_icon/icon.html.erb
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2403 app/pb_kits/playbook/pb_icon/icon.html.erb