Skip to content

Commit

Permalink
fix(button): change back button styles for dropdown buttons (apache#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
msyavuz authored Jan 10, 2025
1 parent 7bd53a8 commit 8a2aada
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
4 changes: 2 additions & 2 deletions superset-frontend/src/components/DropdownButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8a2aada

Please sign in to comment.