Skip to content

Commit

Permalink
Adjust to use Wonder Blocks spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
aemandine committed Sep 4, 2024
1 parent 3ad05bf commit dae5912
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {

import type {PerseusPhetSimulationWidgetOptions} from "../../perseus-types";
import type {WidgetExports, WidgetProps} from "../../types";

Check failure on line 23 in packages/perseus/src/widgets/phet-simulation/phet-simulation.tsx

View workflow job for this annotation

GitHub Actions / Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x)

There should be at least one empty line between import groups

Check failure on line 23 in packages/perseus/src/widgets/phet-simulation/phet-simulation.tsx

View workflow job for this annotation

GitHub Actions / Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x)

There should be at least one empty line between import groups
import {spacing} from "@khanacademy/wonder-blocks-tokens";

Check failure on line 24 in packages/perseus/src/widgets/phet-simulation/phet-simulation.tsx

View workflow job for this annotation

GitHub Actions / Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x)

`@khanacademy/wonder-blocks-tokens` import should occur before import of `@phosphor-icons/core/regular/corners-out.svg`

Check failure on line 24 in packages/perseus/src/widgets/phet-simulation/phet-simulation.tsx

View workflow job for this annotation

GitHub Actions / Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x)

`@khanacademy/wonder-blocks-tokens` import should occur before import of `@phosphor-icons/core/regular/corners-out.svg`

type RenderProps = PerseusPhetSimulationWidgetOptions;
type Props = WidgetProps<RenderProps, PerseusPhetSimulationWidgetOptions>;
Expand Down Expand Up @@ -239,9 +240,9 @@ const styles = StyleSheet.create({
borderRadius: borderRadiusLarge,
borderWidth: 1,
borderColor: basicBorderColor,
padding: phoneMargin,
padding: spacing.medium_16,
paddingBottom: 0,
width: 450,
width: 400 + spacing.medium_16 * 2,
},
});

Expand Down

0 comments on commit dae5912

Please sign in to comment.