| @@ -38,10 +38,17 @@ | ||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | $styleAttr = implode(';', $styleValues); |
| 41 | 41 | |
| 42 | + // Only paint the links when a colour was picked; otherwise the | |
| 43 | + // theme's own link colour applies. | |
| 44 | + $className = 'tableberg-text-element'; | |
| 45 | + if ($attrs->styles->linkColor->isNotEmpty()) { | |
| 46 | + $className .= ' tableberg-has-link-color'; | |
| 47 | + } | |
| 48 | + | |
| 42 | 49 | return |
| 43 | - "<p class='tableberg-text-element' style='{$styleAttr}'> | |
| 50 | + "<p class='{$className}' style='{$styleAttr}'> | |
| 44 | 51 | {$attrs->content->asHtml()} |
| 45 | 52 | </p>"; |
| 46 | 53 | } |
| 47 | 54 | |