Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertCarreras committed Oct 24, 2024
1 parent a78818f commit 8b0af01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gestalt/src/boxTransforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const transformNumberOrPassthrough =
(selector: string): MarginFunctorType =>
(m) => {
if (typeof m === 'number') {
return bind(rangeWithZero(selector), whitespace)(m);
return bind(rangeWithZero(selector), whitespace)(m * 100);
}

if (m === 'auto') {
Expand Down Expand Up @@ -266,7 +266,7 @@ const minWidth: Functor<Dimension> = (d) => fromInlineStyle({ minWidth: d });
const opacityMap = mapClassName((name) => styles[name]);
const opacity: Functor<Opacity> = (val) => {
if (val > 0 && val < 1) {
return opacityMap(range('opacity0')(val * 0.1));
return opacityMap(range('opacity0')(val * 10));
}
return opacityMap(range('opacity')(val));
};
Expand Down

0 comments on commit 8b0af01

Please sign in to comment.