Skip to content

Commit

Permalink
fix: Barcode rendering in server side printing (#15383)
Browse files Browse the repository at this point in the history
Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
  • Loading branch information
gavindsouza and surajshetty3416 committed Dec 21, 2021
1 parent 60621da commit 175721b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions frappe/public/scss/print.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// @import "~bootstrap/scss/bootstrap";
@import './common/quill';
@import "./desk/css_variables";


// .print-format {
// .ql-snow .ql-editor {
// height: auto;
// min-height: 0;
// // max-height: 0;
// }
// }
@import './desk/css_variables';

// !! PDF Barcode hack !!
// Workaround for rendering barcodes prior to https://github.com/frappe/frappe/pull/15307
@media print {
svg[data-barcode-value] > rect {
fill: white !important;
}
svg[data-barcode-value] > g {
fill: black !important;
}
}

0 comments on commit 175721b

Please sign in to comment.