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

Fix toggle button styling

Just innerHTML does not work properly because the Material stylings do 
not take effect. Just using another element (div in this case) solves 
the issue.
parent 8904ff30
No related branches found
No related tags found
No related merge requests found
...@@ -26,9 +26,8 @@ import { ToggleButtonElement } from '../../interfaces/elements'; ...@@ -26,9 +26,8 @@ import { ToggleButtonElement } from '../../interfaces/elements';
elementFormControl.value === i ? elementFormControl.value === i ?
elementModel.styling.selectionColor : elementModel.styling.selectionColor :
elementModel.styling.backgroundColor" elementModel.styling.backgroundColor"
[style.line-height.%]="elementModel.styling.lineHeight" [style.line-height.%]="elementModel.styling.lineHeight">
[innerHTML]="option"> <div [innerHTML]="option"></div>
<!--Background color does not show in editor-->
</mat-button-toggle> </mat-button-toggle>
</mat-button-toggle-group> </mat-button-toggle-group>
</div> </div>
......
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