Requested changes after review

- modified css to increase clicking area
  - modified spec to more straightfoward and more user oriented link
This commit is contained in:
cyrillefr
2024-02-28 08:15:34 +01:00
parent b08623df23
commit f62b32a3b9
3 changed files with 16 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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