mirror of
https://github.com/apache/superset.git
synced 2024-09-06 13:57:40 -04:00
fix: bringing metric type icon styles into SelectControl (#14531)
This commit is contained in:
parent
6871ad15f1
commit
4f000cc8d1
@ -18,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { t } from '@superset-ui/core';
|
import { t, css } from '@superset-ui/core';
|
||||||
import { Select, CreatableSelect, OnPasteSelect } from 'src/components/Select';
|
import { Select, CreatableSelect, OnPasteSelect } from 'src/components/Select';
|
||||||
import ControlHeader from 'src/explore/components/ControlHeader';
|
import ControlHeader from 'src/explore/components/ControlHeader';
|
||||||
|
|
||||||
@ -294,7 +294,17 @@ export default class SelectControl extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div
|
||||||
|
css={theme => css`
|
||||||
|
.type-label {
|
||||||
|
margin-right: ${theme.gridUnit * 2}px;
|
||||||
|
width: ${theme.gridUnit * 7}px;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: ${theme.typography.weights.bold};
|
||||||
|
}
|
||||||
|
`}
|
||||||
|
>
|
||||||
{this.props.showHeader && <ControlHeader {...this.props} />}
|
{this.props.showHeader && <ControlHeader {...this.props} />}
|
||||||
{isMulti ? (
|
{isMulti ? (
|
||||||
<OnPasteSelect {...selectProps} selectWrap={SelectComponent} />
|
<OnPasteSelect {...selectProps} selectWrap={SelectComponent} />
|
||||||
|
Loading…
Reference in New Issue
Block a user