From fb2b58791ebe48227fd00f41a341656dbb2a4cdd Mon Sep 17 00:00:00 2001 From: Nicolas Brichet Date: Fri, 10 Nov 2023 23:13:36 +0100 Subject: [PATCH] Change the default disabled opacity --- packages/components/src/design-tokens.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/components/src/design-tokens.ts b/packages/components/src/design-tokens.ts index 1bfb1b4a..e4205e3c 100644 --- a/packages/components/src/design-tokens.ts +++ b/packages/components/src/design-tokens.ts @@ -64,7 +64,6 @@ export { designUnit, direction, DirectionalStyleSheetBehavior, - disabledOpacity, fillColor, focusStrokeInner, focusStrokeInnerRecipe, @@ -174,6 +173,12 @@ export { const { create } = DesignToken; +/** + * The default disabled opacity. + */ +export const disabledOpacity = + DesignToken.create('opacity').withDefault(0.4); + /* * The error palette is built using the same color algorithm as the accent palette * But by copying the algorithm from @microsoft/fast-components at commit 03d711f222bd816834a5e1d60256d3e083b27c27