diff --git a/frontend/src/Components/Form/TagInput.css b/frontend/src/Components/Form/TagInput.css index 83ff2a02c..eeddab5b4 100644 --- a/frontend/src/Components/Form/TagInput.css +++ b/frontend/src/Components/Form/TagInput.css @@ -12,6 +12,14 @@ } } +.hasError { + composes: hasError from '~Components/Form/Input.css'; +} + +.hasWarning { + composes: hasWarning from '~Components/Form/Input.css'; +} + .internalInput { flex: 1 1 0%; margin-left: 3px; diff --git a/frontend/src/Components/Form/TagInput.css.d.ts b/frontend/src/Components/Form/TagInput.css.d.ts index 7f8ef8235..8b3b412a5 100644 --- a/frontend/src/Components/Form/TagInput.css.d.ts +++ b/frontend/src/Components/Form/TagInput.css.d.ts @@ -1,6 +1,8 @@ // This file is automatically generated. // Please do not change this file! interface CssExports { + 'hasError': string; + 'hasWarning': string; 'input': string; 'internalInput': string; 'isFocused': string; diff --git a/frontend/src/Components/Form/TagInput.js b/frontend/src/Components/Form/TagInput.js index 8c66772f9..840d627f8 100644 --- a/frontend/src/Components/Form/TagInput.js +++ b/frontend/src/Components/Form/TagInput.js @@ -225,6 +225,8 @@ class TagInput extends Component { const { className, inputContainerClassName, + hasError, + hasWarning, ...otherProps } = this.props; @@ -241,7 +243,9 @@ class TagInput extends Component { className={className} inputContainerClassName={classNames( inputContainerClassName, - isFocused && styles.isFocused + isFocused && styles.isFocused, + hasError && styles.hasError, + hasWarning && styles.hasWarning )} value={value} suggestions={suggestions} diff --git a/frontend/src/Components/Form/TagInputTag.css b/frontend/src/Components/Form/TagInputTag.css index ddf876592..1a8ff45d6 100644 --- a/frontend/src/Components/Form/TagInputTag.css +++ b/frontend/src/Components/Form/TagInputTag.css @@ -7,17 +7,11 @@ } .link { - composes: link from '~Components/Link/Link.css'; - max-width: 100%; - line-height: 1px; } .linkWithEdit { - composes: link from '~Components/Link/Link.css'; - max-width: calc(100% - 9px - 4px - 2px); - line-height: 1px; } .editContainer {