chore: Removes border of the color picker control (#25812)

This commit is contained in:
Michael S. Molina 2023-11-02 11:02:47 -03:00 committed by GitHub
parent 6ace22da87
commit aaf7d6b7e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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';
@ -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}