Fix tags height in tag inputs

And other relevant changes missing from #4715
pull/10264/head
Bogdan 3 months ago committed by Qstick
parent 6f306a22e5
commit 6eeed96d12

@ -12,6 +12,14 @@
} }
} }
.hasError {
composes: hasError from '~Components/Form/Input.css';
}
.hasWarning {
composes: hasWarning from '~Components/Form/Input.css';
}
.internalInput { .internalInput {
flex: 1 1 0%; flex: 1 1 0%;
margin-left: 3px; margin-left: 3px;

@ -1,6 +1,8 @@
// This file is automatically generated. // This file is automatically generated.
// Please do not change this file! // Please do not change this file!
interface CssExports { interface CssExports {
'hasError': string;
'hasWarning': string;
'input': string; 'input': string;
'internalInput': string; 'internalInput': string;
'isFocused': string; 'isFocused': string;

@ -225,6 +225,8 @@ class TagInput extends Component {
const { const {
className, className,
inputContainerClassName, inputContainerClassName,
hasError,
hasWarning,
...otherProps ...otherProps
} = this.props; } = this.props;
@ -241,7 +243,9 @@ class TagInput extends Component {
className={className} className={className}
inputContainerClassName={classNames( inputContainerClassName={classNames(
inputContainerClassName, inputContainerClassName,
isFocused && styles.isFocused isFocused && styles.isFocused,
hasError && styles.hasError,
hasWarning && styles.hasWarning
)} )}
value={value} value={value}
suggestions={suggestions} suggestions={suggestions}

@ -7,17 +7,11 @@
} }
.link { .link {
composes: link from '~Components/Link/Link.css';
max-width: 100%; max-width: 100%;
line-height: 1px;
} }
.linkWithEdit { .linkWithEdit {
composes: link from '~Components/Link/Link.css';
max-width: calc(100% - 9px - 4px - 2px); max-width: calc(100% - 9px - 4px - 2px);
line-height: 1px;
} }
.editContainer { .editContainer {

Loading…
Cancel
Save