Sha256: 1791aa7a2eb88a6de728d479304dc9d20bb0fc3c3002f1132a12cc3f3dcd8ef6

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

<% if object.custom_icon %>
  <%= object.embedded_svg(object.custom_icon) %>
<% elsif object.valid_emoji(object.icon) %>
  <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,
  ) %>
  <%= content_tag(:span, nil,
      aria: { label: "#{object.icon} icon" }.merge(object.aria),
      hidden: true
  ) %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
playbook_ui-12.37.0.pre.alpha.svgiconmethods1064 app/pb_kits/playbook/pb_icon/icon.html.erb
playbook_ui-12.36.0.pre.alpha.svgiconmethods1059 app/pb_kits/playbook/pb_icon/icon.html.erb
playbook_ui-12.36.0.pre.alpha.svgiconmethods1043 app/pb_kits/playbook/pb_icon/icon.html.erb