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

Replace Flex layout module with classes in LikertComponent

- Reformat styles
parent 9819f03b
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ import { LikertRadioButtonGroupComponent } from './likert-radio-button-group.com ...@@ -44,7 +44,7 @@ import { LikertRadioButtonGroupComponent } from './likert-radio-button-group.com
{{elementModel.label2}} {{elementModel.label2}}
</div> </div>
<div *ngFor="let column of elementModel.options; let i = index" <div *ngFor="let column of elementModel.options; let i = index"
class="columns" fxLayout="column" fxLayoutAlign="end center" class="columns fx-column-end-center"
[style.grid-column-start]="2 + i" [style.grid-column-start]="2 + i"
[style.grid-column-end]="3 + i" [style.grid-column-end]="3 + i"
[style.grid-row-start]="1" [style.grid-row-start]="1"
...@@ -75,12 +75,30 @@ import { LikertRadioButtonGroupComponent } from './likert-radio-button-group.com ...@@ -75,12 +75,30 @@ import { LikertRadioButtonGroupComponent } from './likert-radio-button-group.com
</div> </div>
</div> </div>
`, `,
styles: [ styles: [`
'img {object-fit: contain; max-height: 100%; max-width: 100%; margin: 10px}', img {
'.columns {text-align: center;}', object-fit: contain;
':host ::ng-deep mat-radio-button span.mat-radio-container {left: calc(50% - 10px)}', max-height: 100%;
'.label {margin-bottom: 10px;}' max-width: 100%;
] margin: 10px;
}
.columns {
text-align: center;
}
:host ::ng-deep mat-radio-button span.mat-radio-container {
left: calc(50% - 10px);
}
.label {
margin-bottom: 10px;
}
.fx-column-end-center {
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
}
`]
}) })
export class LikertComponent extends CompoundElementComponent { export class LikertComponent extends CompoundElementComponent {
@ViewChildren(LikertRadioButtonGroupComponent) compoundChildren!: QueryList<LikertRadioButtonGroupComponent>; @ViewChildren(LikertRadioButtonGroupComponent) compoundChildren!: QueryList<LikertRadioButtonGroupComponent>;
......
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