Skip to content

Commit c5ebef7

Browse files
msivasubramaniaandgolovin
authored andcommitted
change button color based on enable/disable
Signed-off-by: msivasubramaniaan <msivasub@redhat.com>
1 parent e224b47 commit c5ebef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webview/git-import/app/gitImport.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ export class GitImport extends React.Component<DefaultProps, {
519519
<Button variant='contained'
520520
disabled={this.handleCreateBtnDisable()}
521521
className='buttonStyle'
522-
style={{ backgroundColor: '#EE0000', textTransform: 'none', color: 'white' }}
522+
style={{ backgroundColor: this.handleCreateBtnDisable() ? 'var(--vscode-button-secondaryBackground)' : '#EE0000', textTransform: 'none', color: 'white' }}
523523
onClick={() => this.createComponent()}>
524524
Create Component
525525
</Button>

0 commit comments

Comments
 (0)