We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f4da6e commit 59ed844Copy full SHA for 59ed844
src/PhpWord/Writer/Word2007/Element/TextBox.php
@@ -50,6 +50,13 @@ public function write(): void
50
51
if ($style->getBgColor()) {
52
$xmlWriter->writeAttribute('fillcolor', $style->getBgColor());
53
+ } else {
54
+ $xmlWriter->writeAttribute('filled', 'f');
55
+ }
56
+
57
+ if (!$style->getBorderColor()) {
58
+ $xmlWriter->writeAttribute('stroked', 'f');
59
+ $xmlWriter->writeAttribute('strokecolor', 'white');
60
}
61
62
$styleWriter->write();
0 commit comments