Skip to content
Snippets Groups Projects
Commit fdd170d8 authored by jojohoch's avatar jojohoch
Browse files

Break labels of checkboxes and radio buttons

parent 575259cb
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,8 @@ import { FormElementComponent } from '../form-element-component.directive';
{{elementFormControl.errors | errorTransform: elementModel}}
</mat-error>
</div>
`
`,
styles: ['::ng-deep .mat-checkbox-layout {white-space: normal !important}']
})
export class CheckboxComponent extends FormElementComponent {
@Output() onFocusin = new EventEmitter();
......
......@@ -15,7 +15,9 @@ import { FormElementComponent } from '../form-element-component.directive';
[style.font-weight]="elementModel.bold ? 'bold' : ''"
[style.font-style]="elementModel.italic ? 'italic' : ''"
[style.text-decoration]="elementModel.underline ? 'underline' : ''">
<label [innerHTML]="elementModel.label" id="radio-group-label"></label>
<label [innerHTML]="elementModel.label"
class="white-space-break"
id="radio-group-label"></label>
<mat-radio-group aria-labelledby="radio-group-label"
(focusin)="onFocusin.emit()"
[style.margin-bottom.px]="25"
......@@ -33,7 +35,11 @@ import { FormElementComponent } from '../form-element-component.directive';
</mat-error>
</mat-radio-group>
</div>
`
`,
styles: [
'::ng-deep .mat-radio-label {white-space: normal !important}',
'.white-space-break {white-space: normal}'
]
})
export class RadioButtonGroupComponent extends FormElementComponent {
@Output() onFocusin = new EventEmitter();
......
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