refactor: Removes hard coded colors (#11977)

* Removes hard coded colors

Removes hard coded colors defined in src/components/styles.ts. The colors defined in this file were used only in the Select component so they were migrated to src/components/Select/styles.tsx and ajusted to conform to the theme colors.

* Use theme context for Select styles

* Includes Theme Provider in tests with Select
This commit is contained in:
Michael S. Molina
2020-12-10 16:43:57 -03:00
committed by GitHub
parent 9256b6fb3d
commit 3a6254184a
7 changed files with 59 additions and 75 deletions

View File

@@ -19,10 +19,11 @@
/* eslint-disable no-unused-expressions */
import React from 'react';
import sinon from 'sinon';
import { shallow, mount } from 'enzyme';
import { shallow } from 'enzyme';
import { Select, CreatableSelect } from 'src/components/Select';
import OnPasteSelect from 'src/components/Select/OnPasteSelect';
import SelectControl from 'src/explore/components/controls/SelectControl';
import { styledMount as mount } from 'spec/helpers/theming';
const defaultProps = {
choices: [