diff --git a/playbook/app/pb_kits/playbook/pb_background/background.html.erb b/playbook/app/pb_kits/playbook/pb_background/background.html.erb index 00d7daa871..c7668e1407 100644 --- a/playbook/app/pb_kits/playbook/pb_background/background.html.erb +++ b/playbook/app/pb_kits/playbook/pb_background/background.html.erb @@ -1,23 +1,14 @@ <% if object.image_url.present? %> - <%= content_tag(object.tag, - aria: object.aria, - data: object.data, - id: object.id, - class: object.classname, + <%= pb_content_tag(object.tag, style: "background-image: url('#{object.image_url}'); background-repeat: #{object.background_repeat}; background-size: #{object.background_size}; background-position: #{object.background_position};", - **combined_html_options ) do %> <%= content.presence %> <% end %> <% else %> - <%= content_tag(object.tag, - aria: object.aria, - data: object.data, - id: object.id, - class: object.classname, + <%= pb_content_tag(object.tag, style: object.custom_background_color ) do %> <%= content.presence %> diff --git a/playbook/app/pb_kits/playbook/pb_body/body.html.erb b/playbook/app/pb_kits/playbook/pb_body/body.html.erb index 99fe28cc3f..1b822d8312 100755 --- a/playbook/app/pb_kits/playbook/pb_body/body.html.erb +++ b/playbook/app/pb_kits/playbook/pb_body/body.html.erb @@ -1,8 +1,3 @@ -<%= content_tag(object.tag, - aria: object.aria, - id: object.id, - data: object.data, - class: object.classname, - **combined_html_options) do %> +<%= pb_content_tag(object.tag) do %> <%= object.content %> <% end %> diff --git a/playbook/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb b/playbook/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb index f613bd7a8d..677b1b7032 100644 --- a/playbook/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb +++ b/playbook/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb @@ -1,9 +1,4 @@ -<%= content_tag(:div, - id: object.id, - data: object.data, - class: object.classname, - aria: object.aria, - **combined_html_options) do%> +<%= pb_content_tag do%> <%= content_tag(object.link ? 'a' : 'span', class: 'bread_crumb_item', href: object.link) do %> <%= content.presence %> <% end %> diff --git a/playbook/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb b/playbook/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb index 281545a11c..8e86c2ed56 100644 --- a/playbook/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb +++ b/playbook/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb @@ -1,8 +1,3 @@ -<%= content_tag(:nav, - aria: object.aria, - id: object.id, - data: object.data, - class: object.classname, - **combined_html_options) do %> +<%= pb_content_tag(:nav) do %> <%= content.presence %> <% end %> diff --git a/playbook/app/pb_kits/playbook/pb_caption/caption.html.erb b/playbook/app/pb_kits/playbook/pb_caption/caption.html.erb index 44986b8720..4925a27bdc 100755 --- a/playbook/app/pb_kits/playbook/pb_caption/caption.html.erb +++ b/playbook/app/pb_kits/playbook/pb_caption/caption.html.erb @@ -1,8 +1,3 @@ -<%= content_tag(object.tag, - aria: object.aria, - id: object.id, - data: object.data, - class: object.classname, - **combined_html_options) do %> +<%= pb_content_tag(object.tag) do %> <%= content.presence || object.text %> <% end %> diff --git a/playbook/app/pb_kits/playbook/pb_card/card.html.erb b/playbook/app/pb_kits/playbook/pb_card/card.html.erb index 458f1e2b2e..197832b6d0 100755 --- a/playbook/app/pb_kits/playbook/pb_card/card.html.erb +++ b/playbook/app/pb_kits/playbook/pb_card/card.html.erb @@ -1,10 +1,4 @@ -<%= content_tag(object.tag, - id: object.id, - data: object.data, - class: object.classname, - aria: object.aria, - dark: object.dark, - **combined_html_options) do %> +<%= pb_content_tag(object.tag) do %> <%= content.presence %> <% end %> diff --git a/playbook/app/pb_kits/playbook/pb_detail/detail.html.erb b/playbook/app/pb_kits/playbook/pb_detail/detail.html.erb index 0becdbba31..1b822d8312 100644 --- a/playbook/app/pb_kits/playbook/pb_detail/detail.html.erb +++ b/playbook/app/pb_kits/playbook/pb_detail/detail.html.erb @@ -1,8 +1,3 @@ -<%= content_tag(object.tag, - aria: object.aria, - class: object.classname, - data: object.data, - id: object.id, - **combined_html_options) do %> +<%= pb_content_tag(object.tag) do %> <%= object.content %> <% end %> diff --git a/playbook/app/pb_kits/playbook/pb_dialog/dialog.html.erb b/playbook/app/pb_kits/playbook/pb_dialog/dialog.html.erb index 3e45b50774..697fb68ad7 100644 --- a/playbook/app/pb_kits/playbook/pb_dialog/dialog.html.erb +++ b/playbook/app/pb_kits/playbook/pb_dialog/dialog.html.erb @@ -1,10 +1,5 @@