Skip to content
Snippets Groups Projects
Commit de36e3c3 authored by rhenck's avatar rhenck
Browse files

Fix text element with background color and text color at the same time

Highlighted (background colored) text is done with mark elements which
don't have a color and make the contained text lose the styling of the
parent span, which has the text-color property.
To solve it we simply inherit the color of the parent span.
parent fae47e65
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,8 @@ import { ValueChangeElement } from '../models/uI-element';
'::ng-deep .text-container h1 {font-weight: bold; font-size: 20px;}',
'::ng-deep .text-container h2 {font-weight: bold; font-size: 18px;}',
'::ng-deep .text-container h3 {font-weight: bold; font-size: 16px;}',
'::ng-deep .text-container h4 {font-weight: normal; font-size: 16px;}'
'::ng-deep .text-container h4 {font-weight: normal; font-size: 16px;}',
'mark {color: inherit}'
]
})
export class TextComponent extends ElementComponent {
......
......@@ -53,3 +53,7 @@
font-weight: normal;
font-size: 16px;
}
mark {
color: inherit;
}
......@@ -87,3 +87,7 @@ app-rich-text-editor .editor-controls-second-line {
.special-chars-button {
margin-left: 25px;
}
mark {
color: inherit;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment