Lightly fade buttons to add child to a non-structure variable

This commit is contained in:
Florian Rival
2018-04-24 17:10:49 +01:00
parent d061be627b
commit d94749177b
2 changed files with 4 additions and 1 deletions

View File

@@ -94,7 +94,7 @@ const ThemableVariableRow = ({
}
columns.push(
<TreeTableCell key="tools" style={styles.toolColumn}>
<IconButton onClick={onAddChild}>
<IconButton onClick={onAddChild} style={isStructure ? undefined : styles.fadedButton}>
<AddCircle />
</IconButton>
</TreeTableCell>

View File

@@ -24,4 +24,7 @@ export default {
emptyExplanationMessage: {
textAlign: 'left',
},
fadedButton: {
opacity: 0.7,
},
};