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.21.0.pre.alpha.PLAY12652489 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2451 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2441 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.21.0.pre.alpha.PBNTR225advancedtablefeedback2438 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.21.0.pre.alpha.PBNTR238DatePickerYearBug2436 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2431 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2415 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.20.0.pre.alpha.PLAY12572402 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.21.0 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.20.0.pre.alpha.PBNTR225advancedtablefeedback2375 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.19.0.pre.alpha.PBNTR200addadvancedtablekitdarkmodestyles2346 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.19.0.pre.alpha.play1174fixconfimationtoastmobilebug2345 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.19.0.pre.alpha.play1174fixconfimationtoastmobilebug2342 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.19.0.pre.alpha.play1186collapsiblenaviconcolorbug2321 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.19.0.pre.alpha.PBNTR211tablekitsubcomponentsreact2318 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.19.0.pre.alpha.play1174fixconfimationtoastmobilebug2306 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.19.0.pre.alpha.play1174fixconfimationtoastmobilebug2305 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.20.0 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.19.0.pre.alpha.play1141iconkitusinglibrary2264 app/pb_kits/playbook/pb_background/background.html.erb
playbook_ui-13.19.0.pre.alpha.PBNTR207tabledivsupport2261 app/pb_kits/playbook/pb_background/background.html.erb