File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ function EditableInput({
14
14
const [ isEditing , setIsEditing ] = React . useState ( false ) ;
15
15
const [ currentValue , setCurrentValue ] = React . useState ( value || '' ) ;
16
16
const displayValue = currentValue || emptyPlaceholder ;
17
- const classes = `editable-input editable-input--${ isEditing ? 'is-editing' : 'is-not-editing' } ` ;
17
+ const hasValue = currentValue !== '' ;
18
+ const classes = `editable-input editable-input--${ isEditing ? 'is-editing' : 'is-not-editing' } editable-input--${ hasValue ? 'has-value' : 'has-placeholder' } ` ;
18
19
const inputRef = React . createRef ( ) ;
19
20
20
21
React . useEffect ( ( ) => {
Original file line number Diff line number Diff line change 67
67
68
68
.collection-metadata__description .editable-input__label {
69
69
text-align : left ;
70
+ }
70
71
72
+ .collection-metadata__description .editable-input--has-value .editable-input__label {
71
73
@include themify () {
72
74
color : getThemifyVariable (' primary-text-color' );
73
75
}
You can’t perform that action at this time.
0 commit comments