Skip to content

Commit

Permalink
New: Success check mark on blue buttons is now white instead of green
Browse files Browse the repository at this point in the history
(cherry picked from commit 566fae9d5857a10bd69c718368e7847e5a733faa)
  • Loading branch information
markus101 authored and mynameisbogdan committed Aug 19, 2023
1 parent 4bb3bfa commit 65cdbeb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/Components/Link/SpinnerErrorButton.js
Expand Up @@ -97,6 +97,7 @@ class SpinnerErrorButton extends Component {

render() {
const {
kind,
isSpinning,
error,
children,
Expand All @@ -112,7 +113,7 @@ class SpinnerErrorButton extends Component {
const showIcon = wasSuccessful || hasWarning || hasError;

let iconName = icons.CHECK;
let iconKind = kinds.SUCCESS;
let iconKind = kind === kinds.PRIMARY ? kinds.DEFAULT : kinds.SUCCESS;

if (hasWarning) {
iconName = icons.WARNING;
Expand All @@ -126,6 +127,7 @@ class SpinnerErrorButton extends Component {

return (
<SpinnerButton
kind={kind}
isSpinning={isSpinning}
{...otherProps}
>
Expand Down Expand Up @@ -154,6 +156,7 @@ class SpinnerErrorButton extends Component {
}

SpinnerErrorButton.propTypes = {
kind: PropTypes.oneOf(kinds.all),
isSpinning: PropTypes.bool.isRequired,
error: PropTypes.object,
children: PropTypes.node.isRequired
Expand Down

0 comments on commit 65cdbeb

Please sign in to comment.