From 8a2aada58d12baa9980105a4ea970f18388ad86c Mon Sep 17 00:00:00 2001 From: Mehmet Salih Yavuz Date: Fri, 10 Jan 2025 16:23:36 +0300 Subject: [PATCH] fix(button): change back button styles for dropdown buttons (#31789) --- .../src/SqlLab/components/SaveDatasetActionButton/index.tsx | 2 +- superset-frontend/src/components/DropdownButton/index.tsx | 4 ++-- .../src/components/DropdownSelectableIcon/index.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/superset-frontend/src/SqlLab/components/SaveDatasetActionButton/index.tsx b/superset-frontend/src/SqlLab/components/SaveDatasetActionButton/index.tsx index 4982774ed..2acd7665b 100644 --- a/superset-frontend/src/SqlLab/components/SaveDatasetActionButton/index.tsx +++ b/superset-frontend/src/SqlLab/components/SaveDatasetActionButton/index.tsx @@ -37,7 +37,7 @@ const SaveDatasetActionButton = ({ const StyledDropdownButton = styled( DropdownButton as FC, )` - &.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}; diff --git a/superset-frontend/src/components/DropdownButton/index.tsx b/superset-frontend/src/components/DropdownButton/index.tsx index ce44066ac..32a7739e3 100644 --- a/superset-frontend/src/components/DropdownButton/index.tsx +++ b/superset-frontend/src/components/DropdownButton/index.tsx @@ -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}; diff --git a/superset-frontend/src/components/DropdownSelectableIcon/index.tsx b/superset-frontend/src/components/DropdownSelectableIcon/index.tsx index 39eb7d31e..12d23dc24 100644 --- a/superset-frontend/src/components/DropdownSelectableIcon/index.tsx +++ b/superset-frontend/src/components/DropdownSelectableIcon/index.tsx @@ -41,10 +41,10 @@ export interface DropDownSelectableProps extends Pick { } const StyledDropdownButton = styled(DropdownButton as FC)` - 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;