fix(button): change back button styles for dropdown buttons (#31789)

This commit is contained in:
Mehmet Salih Yavuz 2025-01-10 16:23:36 +03:00 committed by GitHub
parent 7bd53a84d5
commit 8a2aada58d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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