Skip to content

Commit a1c4448

Browse files
authored
Merge pull request #2304 from miqh/fix/timepicker-host-style
fix(timepicker): add form item style to host (#2290)
2 parents ce32c72 + 5ed294e commit a1c4448

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/timepicker/timepicker.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ export class TimePicker implements ControlValueAccessor {
8383

8484
@Output() valueChange: EventEmitter<string> = new EventEmitter();
8585

86+
/**
87+
* Ensures component is properly styled when used standalone.
88+
*/
89+
@HostBinding("class.bx--form-item") timepickerClass = true;
90+
8691
writeValue(value: string) {
8792
this.value = value;
8893
}

0 commit comments

Comments
 (0)