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

[editor] ToggleButton: Use transparent selectionColor when strikeSelectedOption

parent 3a9e5e63
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,11 @@ export class ToggleButtonElement extends InputElement implements ToggleButtonPro
}
}
setProperty(property: string, value: unknown): void {
super.setProperty(property, value);
if (property === 'strikeSelectedOption') this.styling.selectionColor = 'transparent';
}
getVariableInfos(): VariableInfo[] {
return [{
id: this.id,
......
......@@ -14,6 +14,7 @@ import { UnitService } from 'editor/src/app/services/unit-services/unit.service'
{{'propertiesPanel.strikeOtherOptions' | translate }}
</mat-checkbox>
<mat-checkbox *ngIf="combinedProperties.strikeSelectedOption !== undefined"
[matTooltip]="'Setzt gleichzeitig die Auswahlfarbe auf transparent'"
[checked]="$any(combinedProperties.strikeSelectedOption)"
(change)="updateModel.emit({ property: 'strikeSelectedOption', value: $event.checked })">
{{'propertiesPanel.strikeSelectedOption' | translate }}
......
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