Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@
<dxc-radio-group
[options]="options"
label="readOnly radio"
error="error message"
error=""
></dxc-radio-group>
<dxc-radio-group
[options]="options"
label="readOnly radio"
error="Error message"
></dxc-radio-group>
</tbuilder-component-mode>
<tbuilder-component-mode text="Default">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
</ng-container>
</div>
<input #inputRef class="valueInput" [name]="name" [value]="value" readOnly aria-hidden="true" />
<span *ngIf="error" class="errorMessage">{{ error }}</span>
<span *ngIf="error || error===''" class="errorMessage">{{ error }}</span>
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ export class DxcRadioGroupComponent implements OnInit {
font-weight: var(--radioGroup-errorMessageFontWeight);
line-height: var(--radioGroup-errorMessageLineHeight);
font-family: var(--radioGroup-labelFontFamily);
height: var(--radioGroup-errorMessageLineHeight);
}
.valueInput {
display: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class DxcRadioGroupItemComponent implements OnInit {
return css`
display: inline-flex;
align-items: center;
${inputs.disabled ? "pointer-events: none" : "cursor: pointer"};
${inputs.disabled ? "pointer-events: none" : inputs.readOnlyState ? "cursor: default" : "cursor: pointer"};
width: fit-content;
.radioInputContainer {
display: flex;
Expand Down