Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Disabled state button transition time #13008

Merged
merged 9 commits into from
Feb 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ const onClick = (
const StyledButton = styled.span`
button {
line-height: 13px;
// this is to over ride a previous transition built into the component
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add the comment above the transition line? I think that's how we usually comment stuff in the repo

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed! Thank you.

transition: background-color 0ms;
&:last-of-type {
margin-right: ${({ theme }) => theme.gridUnit * 2}px;
}
Expand Down
6 changes: 4 additions & 2 deletions superset-frontend/src/common/components/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ const StyledDropdownButton = styled.div`
margin: 0;
width: 120px;
}
:disabled {
&:disabled {
background-color: ${({ theme }) => theme.colors.grayscale.light2};
color: ${({ theme }) => theme.colors.grayscale.base};
}
Expand All @@ -102,7 +103,8 @@ const StyledDropdownButton = styled.div`
top: ${({ theme }) => theme.gridUnit * 0.75}px;
width: ${({ theme }) => theme.gridUnit * 0.25}px;
}
:disabled:before {
&:disabled:before {
border-left: 1px solid ${({ theme }) => theme.colors.grayscale.base};
}
}
Expand Down