Skip to content

Commit 70330e4

Browse files
authored
fix: outline button should use outline color recipes (#3327)
1 parent 35e67bb commit 70330e4

File tree

1 file changed

+10
-7
lines changed
  • packages/web-components/fast-components-msft/src/styles/patterns

1 file changed

+10
-7
lines changed

packages/web-components/fast-components-msft/src/styles/patterns/button.ts

+10-7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ import {
1818
neutralFocusBehavior,
1919
neutralFocusInnerAccentBehavior,
2020
neutralForegroundRestBehavior,
21+
neutralOutlineActiveBehavior,
22+
neutralOutlineHoverBehavior,
23+
neutralOutlineRestBehavior,
2124
} from "../index";
2225

2326
/**
@@ -250,15 +253,15 @@ export const LightweightButtonStyles = css`
250253
export const OutlineButtonStyles = css`
251254
:host(.outline) {
252255
background: transparent;
253-
border-color: ${accentFillRestBehavior.var};
256+
border-color: ${neutralOutlineRestBehavior.var};
254257
}
255258
256259
:host(.outline:hover) {
257-
border-color: ${accentFillHoverBehavior.var};
260+
border-color: ${neutralOutlineHoverBehavior.var};
258261
}
259262
260263
:host(.outline:active) {
261-
border-color: ${accentFillActiveBehavior.var};
264+
border-color: ${neutralOutlineActiveBehavior.var};
262265
}
263266
264267
:host(.outline) .control {
@@ -271,12 +274,12 @@ export const OutlineButtonStyles = css`
271274
}
272275
273276
:host(.outline.disabled) {
274-
border-color: ${accentFillRestBehavior.var};
277+
border-color: ${neutralOutlineRestBehavior.var};
275278
}
276279
`.withBehaviors(
277-
accentFillRestBehavior,
278-
accentFillHoverBehavior,
279-
accentFillActiveBehavior,
280+
neutralOutlineRestBehavior,
281+
neutralOutlineHoverBehavior,
282+
neutralOutlineActiveBehavior,
280283
neutralFocusBehavior
281284
);
282285

0 commit comments

Comments
 (0)