diff --git a/src/Explorer/Controls/InputTypeahead/InputTypeahead.less b/src/Explorer/Controls/InputTypeahead/InputTypeahead.less index e0e29de88..e56bfaa51 100644 --- a/src/Explorer/Controls/InputTypeahead/InputTypeahead.less +++ b/src/Explorer/Controls/InputTypeahead/InputTypeahead.less @@ -4,4 +4,21 @@ vertical-align: middle; display: inline-block; width: 100%; -} \ No newline at end of file + + textarea { + width: 100%; + line-height: 1; + font-size: 14px; + padding: 6px 12px; + background: #fff; + border: 1px solid #ccc; + border-radius: 2px 0 0 2px; + min-height: 25px; + resize: vertical; + + &:focus { + border-color: #66afe9; + } + } +} + diff --git a/src/Explorer/Controls/InputTypeahead/InputTypeaheadComponent.test.tsx b/src/Explorer/Controls/InputTypeahead/InputTypeaheadComponent.test.tsx new file mode 100644 index 000000000..caa3821bc --- /dev/null +++ b/src/Explorer/Controls/InputTypeahead/InputTypeaheadComponent.test.tsx @@ -0,0 +1,34 @@ +import React from "react"; +import { shallow } from "enzyme"; +import { InputTypeaheadComponent, InputTypeaheadComponentProps } from "./InputTypeaheadComponent"; +import "../../../../externals/jquery.typeahead.min.js"; + +describe("inputTypeahead", () => { + it("renders ", () => { + const props: InputTypeaheadComponentProps = { + choices: [ + { caption: "item1", value: "value1" }, + { caption: "item2", value: "value2" } + ], + placeholder: "placeholder", + useTextarea: false + }; + + const wrapper = shallow(); + expect(wrapper).toMatchSnapshot(); + }); + + it("renders