diff --git a/app/webpacker/css/admin/dropdown.scss b/app/webpacker/css/admin/dropdown.scss index 443d8b46e3..c18e90fea0 100644 --- a/app/webpacker/css/admin/dropdown.scss +++ b/app/webpacker/css/admin/dropdown.scss @@ -181,6 +181,11 @@ } } + > details { + margin: -7px -15px; + padding: 7px 15px; + } + > details > summary { display: inline-block; list-style: none; @@ -188,6 +193,8 @@ text-transform: uppercase; font-size: 85%; font-weight: 600; + margin: -8px -15px; + padding: 8px 15px; } > details > summary:after { diff --git a/app/webpacker/css/admin_v3/components/dropdown.scss b/app/webpacker/css/admin_v3/components/dropdown.scss index bf2a36c75b..8a101d1c8d 100644 --- a/app/webpacker/css/admin_v3/components/dropdown.scss +++ b/app/webpacker/css/admin_v3/components/dropdown.scss @@ -181,6 +181,11 @@ } } + > details { + margin: -7px -15px; + padding: 7px 15px; + } + > details > summary { display: inline-block; list-style: none; @@ -188,6 +193,8 @@ text-transform: uppercase; font-size: 85%; font-weight: 600; + margin: -8px -15px; + padding: 8px 15px; } > details > summary:after { diff --git a/spec/system/admin/order_spec.rb b/spec/system/admin/order_spec.rb index b4de995c69..3d6c083d00 100644 --- a/spec/system/admin/order_spec.rb +++ b/spec/system/admin/order_spec.rb @@ -719,7 +719,7 @@ describe ' it "should not display links but a js alert" do visit spree.edit_admin_order_path(order) - find("#links-dropdown .ofn-drop-down details").click + find("summary", text: "ACTIONS").click expect(page).to have_link "Send Invoice", href: "#" expect(page).to have_link "Print Invoice", href: "#" @@ -729,7 +729,7 @@ describe ' expect(message) .to eq "#{distributor1.name} must have a valid ABN before invoices can be used." - find("#links-dropdown .ofn-drop-down details").click + find("summary", text: "ACTIONS").click message = accept_prompt do click_link "Send Invoice" end