Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

$theme: $material;

:host([outlined]) {
igc-date-time-input::part(notch) {
border-block-start: rem(2px) solid transparent;
}
}

:host([outlined][readonly]:hover) {
igc-date-time-input::part(start),
igc-date-time-input::part(end),
Expand Down Expand Up @@ -83,7 +89,7 @@ $theme: $material;
border-color: var-get($theme, 'error-secondary-color');
}

&::part(notch) {
igc-date-time-input::part(notch) {
border-bottom-color: var-get($theme, 'error-secondary-color');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ $theme: $material;
}
}

:host([outlined]) {
igc-date-time-input::part(notch) {
border-block-start: rem(2px) solid transparent;
}
}

:host(:not([readonly])) {
--affix-color: #{var-get($theme, 'input-prefix-color')};

Expand Down
4 changes: 4 additions & 0 deletions src/components/date-time-input/date-time-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,10 @@ export default class IgcDateTimeInputComponent extends EventEmitterMixin<
return mask;
}

if (this.readOnly) {
return '';
}

return this._maskedValue === '' ? mask : this._maskedValue;
}

Expand Down