Skip to content

Commit

Permalink
fix: outline button should use outline color recipes (#3327)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdholt authored Jun 17, 2020
1 parent 35e67bb commit 70330e4
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import {
neutralFocusBehavior,
neutralFocusInnerAccentBehavior,
neutralForegroundRestBehavior,
neutralOutlineActiveBehavior,
neutralOutlineHoverBehavior,
neutralOutlineRestBehavior,
} from "../index";

/**
Expand Down Expand Up @@ -250,15 +253,15 @@ export const LightweightButtonStyles = css`
export const OutlineButtonStyles = css`
:host(.outline) {
background: transparent;
border-color: ${accentFillRestBehavior.var};
border-color: ${neutralOutlineRestBehavior.var};
}
:host(.outline:hover) {
border-color: ${accentFillHoverBehavior.var};
border-color: ${neutralOutlineHoverBehavior.var};
}
:host(.outline:active) {
border-color: ${accentFillActiveBehavior.var};
border-color: ${neutralOutlineActiveBehavior.var};
}
:host(.outline) .control {
Expand All @@ -271,12 +274,12 @@ export const OutlineButtonStyles = css`
}
:host(.outline.disabled) {
border-color: ${accentFillRestBehavior.var};
border-color: ${neutralOutlineRestBehavior.var};
}
`.withBehaviors(
accentFillRestBehavior,
accentFillHoverBehavior,
accentFillActiveBehavior,
neutralOutlineRestBehavior,
neutralOutlineHoverBehavior,
neutralOutlineActiveBehavior,
neutralFocusBehavior
);

Expand Down

0 comments on commit 70330e4

Please sign in to comment.