Skip to content

Commit

Permalink
fix: bringing metric type icon styles into SelectControl (apache#14531)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas authored May 8, 2021
1 parent c23e5e5 commit da74697
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
import React from 'react';
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 ControlHeader from 'src/explore/components/ControlHeader';

Expand Down Expand Up @@ -294,7 +294,17 @@ export default class SelectControl extends React.PureComponent {
}

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} />}
{isMulti ? (
<OnPasteSelect {...selectProps} selectWrap={SelectComponent} />
Expand Down

0 comments on commit da74697

Please sign in to comment.