[FIX] mass_mailing: properly select text color based on background
When changing a mailing's background color to black, the text of many snippets would change to white, even though the mailing's body was white. This was because said body was applied in css while the mailing's body was applied with a class that also set the text's color. This fixes that issue by applying the white background on the body via such a class rather that via css. task-2711643 closes odoo/odoo#81549 X-original-commit: 31abb63fca22c73b85912eb9ba2cf08806aab679 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com> Signed-off-by: Antoine Guenet <age@odoo.com>
This commit is contained in:
@@ -89,7 +89,7 @@
|
||||
<div class="o_layout o_default_theme oe_unremovable oe_unmovable" data-name="Mailing">
|
||||
<div class="container o_mail_wrapper oe_unremovable oe_unmovable" style="border-collapse:collapse;">
|
||||
<div class="row">
|
||||
<div class="col o_mail_no_options o_mail_wrapper_td oe_structure" style="text-align:left;width:100%;">
|
||||
<div class="col o_mail_no_options o_mail_wrapper_td bg-white oe_structure" style="text-align:left;width:100%;">
|
||||
<div class="o_mail_block_header_logo" data-snippet="s_mail_block_header_logo">
|
||||
<div class="o_mail_snippet_general" style="margin:0px auto 0px auto;background-color:rgb(255, 255, 255);max-width:600px;width:100%;">
|
||||
<div class="container o_mail_table_styles o_mail_h_padding" style="padding:0 20px 0 20px;width:100%;border-collapse:separate;">
|
||||
|
||||
@@ -260,7 +260,7 @@ var MassMailingFieldHtml = FieldHtml.extend({
|
||||
class: 'container o_mail_wrapper o_mail_regular oe_unremovable',
|
||||
});
|
||||
$newWrapperContent = $('<div/>', {
|
||||
class: 'col o_mail_no_options o_mail_wrapper_td oe_structure o_editable'
|
||||
class: 'col o_mail_no_options o_mail_wrapper_td bg-white oe_structure o_editable'
|
||||
});
|
||||
$new_wrapper.append($('<div class="row"/>').append($newWrapperContent));
|
||||
}
|
||||
|
||||
@@ -72,7 +72,6 @@ div.col:not([align]) {
|
||||
}
|
||||
|
||||
.o_mail_wrapper_td {
|
||||
background-color: $o-mm-def-color-2;
|
||||
flex: none;
|
||||
padding-left: 0 !important;
|
||||
padding-right: 0 !important;
|
||||
|
||||
Reference in New Issue
Block a user