Skip to content

Commit d6b7a5e

Browse files
mohas22mohas22
authored andcommitted
updated
1 parent 437f3df commit d6b7a5e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/angular-sdk-components/src/lib/_components/field/selectable-card/selectable-card.component.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,8 @@ export class SelectableCardComponent implements OnInit, OnDestroy {
122122

123123
this.disabled = this.configProps$.disabled;
124124
this.readOnly = this.configProps$.renderMode === 'ReadOnly' || this.displayMode$ === 'DISPLAY_ONLY' || this.configProps$.readOnly;
125-
// const imagePosition = this.configProps$.imagePosition;
126-
let imagePosition = 'block-start'; // need to remove this after demo
127-
if (this.readOnly) {
128-
imagePosition = 'inline-end';
129-
} else if (this.type === 'checkbox') {
130-
imagePosition = 'inline-start';
131-
}
125+
const imagePosition = this.configProps$.imagePosition;
126+
132127
// dynamic styling based on image position and readOnly option
133128
let imageWidth = '100%';
134129
this.cardStyle = { display: 'flex', flexDirection: 'column', height: '100%' };

0 commit comments

Comments
 (0)