Add background color input style to styles settings

[MAILPOET-2599]
This commit is contained in:
Rostislav Wolny
2020-03-05 13:06:17 +01:00
committed by Veljko V
parent 026a35fffb
commit eadd6af544
5 changed files with 41 additions and 0 deletions

View File

@ -83,6 +83,7 @@ describe('Blocks to Form Body', () => {
fullWidth: false,
inheritFromTheme: false,
bold: true,
backgroundColor: '#aaaaaa',
},
},
};
@ -96,6 +97,7 @@ describe('Blocks to Form Body', () => {
expect(inputWithCustomStyles.styles).to.eql({
full_width: '0',
bold: '1',
background_color: '#aaaaaa',
});
});

View File

@ -132,6 +132,7 @@ describe('Form Body To Blocks', () => {
const customTextStyles = {
full_width: '0',
bold: '1',
background_color: '#ffffff',
};
const map = formBodyToBlocksFactory(colorDefinitions, [customFieldText]);
@ -147,6 +148,7 @@ describe('Form Body To Blocks', () => {
fullWidth: false,
inheritFromTheme: false,
bold: true,
backgroundColor: '#ffffff',
});
});