diff --git a/superset-frontend/src/addSlice/AddSliceContainer.tsx b/superset-frontend/src/addSlice/AddSliceContainer.tsx index edb8e93df1..0469461509 100644 --- a/superset-frontend/src/addSlice/AddSliceContainer.tsx +++ b/superset-frontend/src/addSlice/AddSliceContainer.tsx @@ -103,7 +103,7 @@ export default class AddSliceContainer extends React.PureComponent< name="select-datasource" onChange={this.changeDatasource} options={this.props.datasources} - placeholder={t('Choose a datasource')} + placeholder={t('Choose a dataset')} value={ this.state.datasourceValue ? { @@ -134,6 +134,7 @@ export default class AddSliceContainer extends React.PureComponent< name="select-vis-type" onChange={this.changeVisType} value={this.state.visType} + labelBsStyle="primary" />
diff --git a/superset-frontend/src/components/Button/index.tsx b/superset-frontend/src/components/Button/index.tsx index 1541b745dc..dd7623e12b 100644 --- a/superset-frontend/src/components/Button/index.tsx +++ b/superset-frontend/src/components/Button/index.tsx @@ -221,7 +221,7 @@ const SupersetButton = styled(BootstrapButton)` &[disabled], &[disabled]:hover { background-color: ${({ theme }) => theme.colors.grayscale.light2}; - color: ${({ theme }) => theme.colors.grayscale.light1}; + color: ${({ theme }) => theme.colors.grayscale.base}; } } diff --git a/superset-frontend/src/explore/components/controls/VizTypeControl.jsx b/superset-frontend/src/explore/components/controls/VizTypeControl.jsx index 675d6c5b8a..4f196a7259 100644 --- a/superset-frontend/src/explore/components/controls/VizTypeControl.jsx +++ b/superset-frontend/src/explore/components/controls/VizTypeControl.jsx @@ -38,16 +38,17 @@ const propTypes = { name: PropTypes.string.isRequired, onChange: PropTypes.func, value: PropTypes.string.isRequired, + labelBsStyle: PropTypes.string, }; const defaultProps = { onChange: () => {}, + labelBsStyle: 'default', }; const registry = getChartMetadataRegistry(); const IMAGE_PER_ROW = 6; -const LABEL_STYLE = { cursor: 'pointer' }; const DEFAULT_ORDER = [ 'line', 'big_number', @@ -160,7 +161,7 @@ export default class VizTypeControl extends React.PureComponent { render() { const { filter, showModal } = this.state; - const { value } = this.props; + const { value, labelBsStyle } = this.props; const filterString = filter.toLowerCase(); const filteredTypes = DEFAULT_ORDER.filter(type => registry.has(type)) @@ -198,7 +199,7 @@ export default class VizTypeControl extends React.PureComponent { } > <> -