Skip to content

Commit

Permalink
fix(sql-editor): Fix run stop button color to improve usability (#23892)
Browse files Browse the repository at this point in the history
Co-authored-by: aadhikari <aadhikari@apple.com>
  • Loading branch information
anamitraadhikari and aadhikari authored May 3, 2023
1 parent 3528f41 commit d4b9c18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ const RunQueryActionButton = ({
),
trigger: 'click',
}
: { buttonStyle: 'primary' })}
: {
buttonStyle: shouldShowStopBtn ? 'warning' : 'primary',
})}
>
{buildText(shouldShowStopBtn, selectedText)}
</ButtonComponent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const RunQueryButton = ({
}: RunQueryButtonProps) =>
loading ? (
<Button onClick={onStop} buttonStyle="warning" disabled={!canStopQuery}>
<i className="fa fa-stop-circle-o" /> {t('Stop')}
<i className="fa fa-stop" /> {t('Stop')}
</Button>
) : (
<Button
Expand Down

0 comments on commit d4b9c18

Please sign in to comment.