Sha256: 1822d0fe1eabba9353e172d5f16750a891c6a5d613a38440ec3f57b27faafc60

Contents?: true

Size: 711 Bytes

Versions: 216

Compression:

Stored size: 711 Bytes

Contents

<% if object.image_url.present? %>
  <%= content_tag(object.tag,
      aria: object.aria,
      data: object.data,
      id: object.id,
      class: object.classname,
      style: "background-image: url('#{object.image_url}');
              background-repeat: #{object.background_repeat};
              background-size: #{object.background_size};
              background-position: #{object.background_position};"
  ) do %>
    <%= content.presence %>
  <% end %>
<% else %>
  <%= content_tag(object.tag,
      aria: object.aria,
      data: object.data,
      id: object.id,
      class: object.classname,
      style: object.custom_background_color
  ) do %>
    <%= content.presence %>
  <% end %>
<% end %>

Version data entries

216 entries across 216 versions & 1 rubygems

Version Path
playbook_ui-13.12.0.pre.alpha.play10281596 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.12.0.pre.alpha.play1051testhighcharts1581 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.12.0.pre.alpha.play1051testhighcharts1580 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.12.0.pre.alpha.play1051testhighcharts1579 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1093typeaheadkitdocbug1577 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.12.0.pre.alpha.play1051testhighcharts1574 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.12.0.pre.alpha.play1051highchartstest1567 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.12.0.pre.alpha.play1051highchartstest1558 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.12.0.pre.alpha.play1051highchartstest1556 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1051removinghighchartsdependency1551 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.12.0.pre.alpha.play900startratingasinput1550 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.12.0.pre.alpha.play900startratingasinput1543 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.11.1.pre.alpha.play900startratingasinput1530 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.12.0 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.11.1 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.11.0 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.10.0.pre.alpha.PLAY1051removinghighchartsdependency1465 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.10.0.pre.alpha.webpackerregistercomponents1463 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.10.0.pre.alpha.dependabotnpmandyarnfortawesomefontawesomepro6421439 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.10.0.pre.alpha.play10561428 app/pb_kits/playbook/pb_background/background.html.erb