fix(button): change back button styles for dropdown buttons (#31789)
This commit is contained in:
parent
7bd53a84d5
commit
8a2aada58d
|
|
@ -37,7 +37,7 @@ const SaveDatasetActionButton = ({
|
|||
const StyledDropdownButton = styled(
|
||||
DropdownButton as FC<DropdownButtonProps>,
|
||||
)`
|
||||
&.ant-dropdown-button button.antd5-btn.antd5-btn-default {
|
||||
&.ant-dropdown-button button.ant-btn.ant-btn-default {
|
||||
font-weight: ${theme.gridUnit * 150};
|
||||
background-color: ${theme.colors.primary.light4};
|
||||
color: ${theme.colors.primary.dark1};
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ import { styled } from '@superset-ui/core';
|
|||
import { kebabCase } from 'lodash';
|
||||
|
||||
const StyledDropdownButton = styled.div`
|
||||
.antd5-btn-group {
|
||||
button.antd5-btn {
|
||||
.ant-btn-group {
|
||||
button.ant-btn {
|
||||
background-color: ${({ theme }) => theme.colors.primary.dark1};
|
||||
border-color: transparent;
|
||||
color: ${({ theme }) => theme.colors.grayscale.light5};
|
||||
|
|
|
|||
|
|
@ -41,10 +41,10 @@ export interface DropDownSelectableProps extends Pick<MenuProps, 'onSelect'> {
|
|||
}
|
||||
|
||||
const StyledDropdownButton = styled(DropdownButton as FC<DropdownButtonProps>)`
|
||||
button.antd5-btn:first-of-type {
|
||||
button.ant-btn:first-of-type {
|
||||
display: none;
|
||||
}
|
||||
> button.antd5-btn:nth-of-type(2) {
|
||||
> button.ant-btn:nth-of-type(2) {
|
||||
display: inline-flex;
|
||||
background-color: transparent !important;
|
||||
height: unset;
|
||||
|
|
|
|||
Loading…
Reference in New Issue