Skip to content

Commit

Permalink
Change the default disabled opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Nov 10, 2023
1 parent bbb5ea4 commit fb2b587
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/components/src/design-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export {
designUnit,
direction,
DirectionalStyleSheetBehavior,
disabledOpacity,
fillColor,
focusStrokeInner,
focusStrokeInnerRecipe,
Expand Down Expand Up @@ -174,6 +173,12 @@ export {

const { create } = DesignToken;

/**
* The default disabled opacity.
*/
export const disabledOpacity =
DesignToken.create<number>('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
Expand Down

0 comments on commit fb2b587

Please sign in to comment.