From 65cdbeb41ea3d4b7d93eb61f4d07aa7ec1ba886f Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 18 Aug 2023 23:49:30 -0700 Subject: [PATCH] New: Success check mark on blue buttons is now white instead of green (cherry picked from commit 566fae9d5857a10bd69c718368e7847e5a733faa) --- frontend/src/Components/Link/SpinnerErrorButton.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/Components/Link/SpinnerErrorButton.js b/frontend/src/Components/Link/SpinnerErrorButton.js index 81d34f7c29..b0f39bc267 100644 --- a/frontend/src/Components/Link/SpinnerErrorButton.js +++ b/frontend/src/Components/Link/SpinnerErrorButton.js @@ -97,6 +97,7 @@ class SpinnerErrorButton extends Component { render() { const { + kind, isSpinning, error, children, @@ -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; @@ -126,6 +127,7 @@ class SpinnerErrorButton extends Component { return ( @@ -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