From ea80c8d538ef01f42b2f948dd9856a7da4f5694e Mon Sep 17 00:00:00 2001 From: GoOz Date: Tue, 30 Apr 2019 11:55:28 +0200 Subject: [PATCH] fix: Update Spinner default color --- react/Spinner/index.jsx | 3 ++- react/__snapshots__/examples.spec.jsx.snap | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/react/Spinner/index.jsx b/react/Spinner/index.jsx index 42f7395deb..7d49b8fa89 100644 --- a/react/Spinner/index.jsx +++ b/react/Spinner/index.jsx @@ -4,6 +4,7 @@ import { translate } from '../I18n' import cx from 'classnames' import PropTypes from 'prop-types' import styles from './styles.styl' +import palette from '../palette' export const Spinner = ({ t, loadingType, @@ -60,7 +61,7 @@ Spinner.defaultProps = { loadingType: '', middle: false, noMargin: false, - color: 'blue', + color: palette['primaryColor'], size: 'medium', className: '' } diff --git a/react/__snapshots__/examples.spec.jsx.snap b/react/__snapshots__/examples.spec.jsx.snap index 1ae6ada7d4..f8558f06a9 100644 --- a/react/__snapshots__/examples.spec.jsx.snap +++ b/react/__snapshots__/examples.spec.jsx.snap @@ -1512,7 +1512,7 @@ exports[`Sidebar should render examples: Sidebar 1`] = ` exports[`Spinner should render examples: Spinner 1`] = ` "
-
+
" @@ -1520,7 +1520,7 @@ exports[`Spinner should render examples: Spinner 1`] = ` exports[`Spinner should render examples: Spinner 2`] = ` "
-
blue (default):
+
blue (default):
or
@@ -1538,7 +1538,7 @@ exports[`Spinner should render examples: Spinner 2`] = ` exports[`Spinner should render examples: Spinner 3`] = ` "
-
+
@@ -1547,19 +1547,19 @@ exports[`Spinner should render examples: Spinner 3`] = ` exports[`Spinner should render examples: Spinner 4`] = ` "
-
tiny:
+
tiny:
-

small:
+

small:
-

medium (default):
+

medium (default):
-
or
+
or
-

large:
+

large:
-

xlarge:
+

xlarge:
-

xxlarge:
+

xxlarge:
@@ -1569,7 +1569,7 @@ exports[`Spinner should render examples: Spinner 4`] = ` exports[`Spinner should render examples: Spinner 5`] = ` "
-
+

loading.hi