diff --git a/playbook/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb b/playbook/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb index 19a3bd2181..c990bb0f49 100644 --- a/playbook/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +++ b/playbook/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb @@ -1,4 +1,9 @@ -<%= pb_content_tag do %> +<%= content_tag(:div, + aria: object.aria, + class: object.classname, + data: object.data, + id: object.id, + **combined_html_options) do %> <% if object.label.present? %> <%= pb_rails("caption", props: {text: object.label, margin_bottom:"xs"}) %> <% end %> diff --git a/playbook/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb b/playbook/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb index 586533b024..b139446f3a 100644 --- a/playbook/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +++ b/playbook/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb @@ -1,4 +1,10 @@ -<%= pb_content_tag(:div, style: object.container_style) do %> +<%= content_tag(:div, + aria: object.aria, + class: object.classname, + data: object.data, + id: object.id, + style: object.container_style, + **combined_html_options) do %> <%= pb_rails("list", props: {ordered: false, borderless: false}) do %> <% if content.present? %> <%= content.presence %> diff --git a/playbook/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb b/playbook/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb index 9cf25b18df..51b68ed9d3 100644 --- a/playbook/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb +++ b/playbook/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb @@ -1,4 +1,9 @@ -<%= pb_content_tag do %> +<%= content_tag(:div, + aria: object.aria, + class: object.classname, + data: object.data, + id: object.id, + **combined_html_options) do %> <%= pb_rails("list/item", props: { display: "flex", justify_content: "center", diff --git a/playbook/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb b/playbook/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb index dd4478bb4b..85df55c4ec 100644 --- a/playbook/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb +++ b/playbook/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb @@ -1,4 +1,9 @@ -<%= pb_content_tag do %> +<%= content_tag(:div, + aria: object.aria, + class: object.classname, + data: object.data, + id: object.id, + **combined_html_options) do %> <% if content.present? %>
<%= content.presence %>