diff --git a/src/checkbox/checkbox-exported-tests.ts b/src/checkbox/checkbox-exported-tests.ts index 4965203141..dc0300e350 100644 --- a/src/checkbox/checkbox-exported-tests.ts +++ b/src/checkbox/checkbox-exported-tests.ts @@ -1,5 +1,5 @@ import { expect } from "chai"; -import merge from "lodash/merge"; +import merge from "lodash-es/merge"; import ComponentTests from "../exported-tests/component-tests"; const defaults = { diff --git a/src/combobox/combobox.component.ts b/src/combobox/combobox.component.ts index ced6891e6f..fd65a9c3a5 100644 --- a/src/combobox/combobox.component.ts +++ b/src/combobox/combobox.component.ts @@ -263,8 +263,8 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD return this._clearSelectionAria.value; } static comboBoxCount = 0; - @Input() id = `dropdown-${ComboBox.comboBoxCount++}`; - @Input() labelId = `dropdown-label-${ComboBox.comboBoxCount++}`; + @Input() id = `combobox-${ComboBox.comboBoxCount++}`; + @Input() labelId = `combobox-label-${ComboBox.comboBoxCount++}`; /** * List of items to fill the content with. * diff --git a/src/input/text-area.directive.ts b/src/input/text-area.directive.ts index 1a8223b4a5..06b473cabb 100644 --- a/src/input/text-area.directive.ts +++ b/src/input/text-area.directive.ts @@ -27,4 +27,8 @@ export class TextArea { @HostBinding("class.cds--text-area--light") get isLightTheme() { return this.theme === "light"; } + + @HostBinding("attr.data-invalid") get getInvalidAttr() { + return this.invalid ? true : undefined; + } } diff --git a/src/input/textarea-label.component.ts b/src/input/textarea-label.component.ts index 7f581c06df..3221fe07c3 100644 --- a/src/input/textarea-label.component.ts +++ b/src/input/textarea-label.component.ts @@ -31,58 +31,89 @@ import { TextArea } from "./text-area.directive"; @Component({ selector: "cds-textarea-label, ibm-textarea-label", template: ` - -