Skip to content

Commit

Permalink
chore: Removes border of the color picker control (apache#25812)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina authored Nov 2, 2023
1 parent 6ace22d commit aaf7d6b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { SketchPicker } from 'react-color';
import { getCategoricalSchemeRegistry, styled } from '@superset-ui/core';
import { getCategoricalSchemeRegistry, styled, css } from '@superset-ui/core';
import Popover from 'src/components/Popover';
import ControlHeader from '../ControlHeader';

Expand Down Expand Up @@ -82,6 +82,11 @@ export default class ColorPickerControl extends React.Component {
return (
<div id="filter-popover" className="color-popover">
<SketchPicker
css={css`
// We need to use important here as these are element level styles
padding: 0 !important;
box-shadow: none !important;
`}
color={this.props.value}
onChange={this.onChange}
presetColors={presetColors}
Expand Down

0 comments on commit aaf7d6b

Please sign in to comment.