diff --git a/web/packages/design/src/Alert/Alert.jsx b/web/packages/design/src/Alert/Alert.jsx index 1028e6b36598a..de5d8197359f4 100644 --- a/web/packages/design/src/Alert/Alert.jsx +++ b/web/packages/design/src/Alert/Alert.jsx @@ -27,27 +27,27 @@ const kind = props => { case 'danger': return { background: theme.colors.danger, - color: theme.colors.primary.contrastText, + color: theme.colors.text.contrast, }; case 'info': return { background: theme.colors.info, - color: theme.colors.primary.contrastText, + color: theme.colors.text.contrast, }; case 'warning': return { background: theme.colors.warning, - color: theme.colors.primary.contrastText, + color: theme.colors.text.contrast, }; case 'success': return { background: theme.colors.success, - color: theme.colors.primary.contrastText, + color: theme.colors.text.contrast, }; default: return { background: theme.colors.danger, - color: theme.colors.primary.contrastText, + color: theme.colors.text.contrast, }; } }; diff --git a/web/packages/design/src/Button/Button.jsx b/web/packages/design/src/Button/Button.jsx index 711e3e831afab..83a2c9d1a9fba 100644 --- a/web/packages/design/src/Button/Button.jsx +++ b/web/packages/design/src/Button/Button.jsx @@ -58,10 +58,10 @@ const themedStyles = props => { const { kind } = props; const style = { - color: colors.text.primary, + color: colors.buttons.text, '&:disabled': { - background: kind === 'text' ? 'none' : colors.action.disabledBackground, - color: colors.action.disabled, + background: kind === 'text' ? 'none' : colors.buttons.bgDisabled, + color: colors.buttons.textDisabled, }, }; @@ -81,19 +81,19 @@ export const kinds = props => { switch (kind) { case 'secondary': return { - background: theme.colors.primary.light, + background: theme.colors.buttons.secondary.default, '&:hover, &:focus': { - background: theme.colors.primary.lighter, + background: theme.colors.buttons.secondary.hover, }, }; case 'border': return { - background: theme.colors.primary.lighter, - border: '1px solid ' + theme.colors.primary.main, + background: theme.colors.buttons.border.default, + border: '1px solid ' + theme.colors.buttons.border.border, opacity: '.87', '&:hover, &:focus': { - background: theme.colors.primary.lighter, - border: '1px solid ' + theme.colors.action.hover, + background: theme.colors.buttons.border.hover, + border: '1px solid ' + theme.colors.buttons.border.borderHover, opacity: 1, }, '&:active': { @@ -102,9 +102,9 @@ export const kinds = props => { }; case 'warning': return { - background: theme.colors.error.dark, + background: theme.colors.buttons.warning.default, '&:hover, &:focus': { - background: theme.colors.error.main, + background: theme.colors.buttons.warning.hover, }, }; case 'text': @@ -119,12 +119,12 @@ export const kinds = props => { case 'primary': default: return { - background: theme.colors.secondary.main, + background: theme.colors.buttons.primary.default, '&:hover, &:focus': { - background: theme.colors.secondary.light, + background: theme.colors.buttons.primary.hover, }, '&:active': { - background: theme.colors.secondary.dark, + background: theme.colors.buttons.primary.active, }, }; } diff --git a/web/packages/design/src/Button/Button.test.js b/web/packages/design/src/Button/Button.test.js index 6b9d78c31dd3c..1d2adf3331c8d 100644 --- a/web/packages/design/src/Button/Button.test.js +++ b/web/packages/design/src/Button/Button.test.js @@ -25,21 +25,21 @@ describe('design/Button', () => { const { container } = render(