Skip to content

Commit

Permalink
fix: change teh destructive buttons to be filled
Browse files Browse the repository at this point in the history
  • Loading branch information
SiTaggart committed Nov 15, 2019
1 parent b3c3a20 commit 4571971
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions packages/paste-core/components/button/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,34 +199,30 @@ const variantSecondaryDisabled = (props: ButtonWrapperProps): SerializedStyles =
const variantDestructiveBase = (props: ButtonWrapperProps): SerializedStyles => css`
border-width: ${themeGet('borderWidths.borderWidth20')(props)};
border-style: solid;
background-color: ${themeGet('backgroundColors.colorBackgroundBody')(props)};
background-color: ${themeGet('backgroundColors.colorBackgroundDestructive')(props)};
color: ${themeGet('textColors.colorTextInverse')(props)};
`;

const variantDestructiveEnabled = (props: ButtonWrapperProps): SerializedStyles =>
css([
baseEnabled(props),
variantDestructiveBase(props),
css`
color: ${themeGet('textColors.colorTextLinkDestructive')(props)};
border-color: ${themeGet('borderColors.colorBorderDestructive')(props)};
background-color: ${themeGet('backgroundColors.colorBackgroundBody')(props)};
&:hover {
color: ${themeGet('textColors.colorTextLinkDestructiveDarker')(props)};
border-color: ${themeGet('borderColors.colorBorderDestructiveDarker')(props)};
background-color: ${themeGet('backgroundColors.colorBackgroundDestructiveLightest')(props)};
background-color: ${themeGet('backgroundColors.colorBackgroundDestructiveDarker')(props)};
}
&:focus {
color: ${themeGet('textColors.colorTextLinkDestructive')(props)};
border-color: ${themeGet('borderColors.colorBorderDestructive')(props)};
background-color: ${themeGet('backgroundColors.colorBackgroundDestructiveLightest')(props)};
border-color: ${themeGet('borderColors.colorBorderDestructiveDarker')(props)};
background-color: ${themeGet('backgroundColors.colorBackgroundDestructive')(props)};
}
&:active {
color: ${themeGet('textColors.colorTextLinkDestructiveDarker')(props)};
border-color: ${themeGet('borderColors.colorBorderDestructiveDarker')(props)};
background-color: ${themeGet('backgroundColors.colorBackgroundDestructiveLighter')(props)};
background-color: ${themeGet('backgroundColors.colorBackgroundDestructiveDark')(props)};
}
`,
]);
Expand All @@ -235,18 +231,17 @@ const variantDestructiveLoading = (props: ButtonWrapperProps): SerializedStyles
baseLoading(props),
variantDestructiveBase(props),
css`
color: ${themeGet('textColors.colorTextLinkDestructiveDarker')(props)};
border-color: ${themeGet('borderColors.colorBorderDestructiveLighter')(props)};
background-color: ${themeGet('backgroundColors.colorBackgroundDestructiveLighter')(props)};
border-color: ${themeGet('borderColors.colorBorderDestructiveDarker')(props)};
background-color: ${themeGet('backgroundColors.colorBackgroundDestructiveDarker')(props)};
`,
]);
const variantDestructiveDisabled = (props: ButtonWrapperProps): SerializedStyles =>
css([
baseDisabled(props),
variantDestructiveBase(props),
css`
color: ${themeGet('textColors.colorTextLinkDestructiveLight')(props)};
border-color: ${themeGet('borderColors.colorBorderDestructiveLight')(props)};
background-color: ${themeGet('backgroundColors.colorBackgroundDestructiveLight')(props)};
`,
]);

Expand Down

0 comments on commit 4571971

Please sign in to comment.