Commit Graph

302 Commits

Author SHA1 Message Date
Mike Jolley
d90e4dc962 Fix element styles and scrollbars 2024-04-22 12:43:17 +01:00
Mike Jolley
1e5ec13403 Ensure typography has value 2024-04-22 12:43:17 +01:00
Mike Jolley
587a59e842 remove inherited size from buttons 2024-04-22 12:43:17 +01:00
Mike Jolley
7ac23bcfdb Remove default sizing 2024-04-22 12:43:17 +01:00
Mike Jolley
1220641417 Adjust font size tests 2024-04-22 12:43:17 +01:00
Mike Jolley
af92fd9af3 Fix styles in preview 2024-04-22 12:43:17 +01:00
Mike Jolley
67cbfe9656 Type panels fully functional, with previews 2024-04-22 12:43:17 +01:00
Mike Jolley
a8e9b167cb Work on tool panels 2024-04-22 12:43:17 +01:00
Mike Jolley
35b3cd4737 Panel Navigation 2024-04-22 12:43:17 +01:00
Jan Lysý
78160ae329 Update testing email template
[MAILPOET-5971]
2024-04-22 10:32:47 +02:00
Jan Lysý
52c6f698c9 Add WP CLI command for creating testing email template
[MAILPOET-5971]
2024-04-22 10:32:47 +02:00
Jan Lysý
26896d3cb7 Move email default content to NewsletterSaveController
To avoid circular reference I moved default content to NewsletterSaveController.
[MAILPOET-5971]
2024-04-22 10:32:47 +02:00
Rostislav Wolny
4f7268e364 Use sprintf for inserting styles into text block HTML template
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
13c73b781b Remove unnecessary table wrap for outlook for text blocks
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
b8396140ac Remove paragraph renderer
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
fd04141141 Use Text renderer also for paragraph block
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
d49f3e8988 Rename Heading renderer to Text renderer
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
c52937202e Polish Heading block renderer code
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
057de1d2e7 Use a first tag from heading block rendered content
The block has only one HTML element, so we don't need to explicitly ask for a heading.
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
9873634f1e Use inherit value as a fix for font-size defined via clamp
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
d56cf24a7c Fix regular expression for removing padding in the heading block
The problem was that \padding.*:\ would eat much more than just one padding rule.
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
47a4871600 Remove unused SettingsController::convertStylesToString method
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
15e0c3fa4d Use WP's style engine for formatting style arrays to string
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Mike Jolley
e1f5e882fe Prevent double registration of block types 2024-04-10 11:42:50 +02:00
Mike Jolley
6f5de68a9f initialize block types controller elsewhere 2024-04-10 11:42:50 +02:00
Mike Jolley
c267b82035 Remove renderCallback 2024-04-10 11:42:50 +02:00
Mike Jolley
3f2b96f3a6 Introduce block to handle email content 2024-04-10 11:42:50 +02:00
Mike Jolley
37e901c809 Restore content renderer styles to fix remaining tests 2024-04-10 11:42:50 +02:00
Mike Jolley
02b8a4ad78 Force content render 2024-04-10 11:42:50 +02:00
Mike Jolley
fa73d97ae9 Mock getEmailStyles 2024-04-10 11:42:50 +02:00
Mike Jolley
26246cd202 Return Meta robots + subject 2024-04-10 11:42:50 +02:00
Mike Jolley
ab893062ae Default colors 2024-04-10 11:42:50 +02:00
Mike Jolley
3ec36064ab Fix undefined spacing warning 2024-04-10 11:42:50 +02:00
Mike Jolley
0b2e88df9a Outlook spacing 2024-04-10 11:42:50 +02:00
Mike Jolley
2060b68583 Handle spacing using consistent spacing element 2024-04-10 11:42:50 +02:00
Mike Jolley
f79f3a00c4 Remove kses 2024-04-10 11:42:50 +02:00
Mike Jolley
1e499a0ce7 Fix trailing comma 2024-04-10 11:42:50 +02:00
Mike Jolley
a697b32e0e Exclude from phpstan 2024-04-10 11:42:50 +02:00
Mike Jolley
e0d27db790 Remove top level processor in favour of wrapping column in template, fix column padding 2024-04-10 11:42:50 +02:00
Mike Jolley
b4acac7c52 Refactor renderers to use templates 2024-04-10 11:42:50 +02:00
Mike Jolley
888be622e2 Add main template canvas and consolodate styles 2024-04-10 11:42:50 +02:00
Mike Jolley
0cd85dc1b3 Utility class to get template from file system 2024-04-10 11:42:50 +02:00
Mike Jolley
05124fc6c1 Remove redundant use statement 2024-03-25 12:11:11 +01:00
Mike Jolley
2c98fc4323 Code styling 2024-03-25 12:11:11 +01:00
Mike Jolley
a5f177c7e4 Spacing 2024-03-25 12:11:11 +01:00
Mike Jolley
fc384424ac Update tests to reflect markup changes 2024-03-25 12:11:11 +01:00
Mike Jolley
2f888daca5 Fix rendering and include shared logic 2024-03-25 12:11:11 +01:00
Mike Jolley
9a705a4394 Refactor button styling 2024-03-25 12:11:11 +01:00
Jan Lysý
a70660dfc3 Fix ordering used classes after rebase
[MAILPOET-5640]
2024-03-22 17:19:44 +01:00
Jan Lysý
685796f310 Remove redundant property theme
Because we can write and read meta field directly, we don't need our own implementation.
[MAILPOET-5640]
2024-03-22 17:19:44 +01:00