Can we add avery 5160/8160 1" x 2 5/8" label format to the list of available labels to choose from?

CommentFileSizeAuthor
#5 3047768-02.patch1.7 KBjnrfred
#2 3047768-02.patch0 bytesjnrfred

Comments

jnrfred created an issue. See original summary.

jnrfred’s picture

Status: Active » Needs review
StatusFileSize
new0 bytes

This is a patch that includes the label format.

joshmiller’s picture

Assigned: Unassigned » joshmiller

Reviewing at Drupalcon Seattle 2019 Sprint!

joshmiller’s picture

Assigned: joshmiller » Unassigned
Status: Needs review » Needs work

Patch has no code, unfortunately. I pinged Fred and he's looking into it.

jnrfred’s picture

Status: Needs work » Needs review
StatusFileSize
new1.7 KB

Sorry Josh. Patch re-uploaded :)

joshmiller’s picture

Assigned: Unassigned » joshmiller

Thanks!

Status: Needs review » Needs work

The last submitted patch, 5: 3047768-02.patch, failed testing. View results

joshmiller’s picture

Assigned: joshmiller » Unassigned

Missing the SASS for the label.

Also, the CSS that was written has some formatting issues.

The primary functionality looks fine.

joshmiller’s picture

+++ b/modules/label/css/labels/commerce_pos_label.label.avery_5160_8160.css
@@ -0,0 +1,46 @@
+@media print {
+    .commerce-pos-label {
+    page-break-after: always;
+}
+}.commerce-pos-label * {
+    margin: 0;
+    padding: 0;
+}

This is the css formatting that has some issues.