Skip to content

Commit

Permalink
Merge pull request #10872 from wellcomecollection/text-slice-simulato…
Browse files Browse the repository at this point in the history
…r-options

Use options instead of context so slice-simulator works
  • Loading branch information
davidpmccormick committed May 20, 2024
2 parents b232a80 + dca8cfe commit cdf1b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/views/slices/Text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Text: FunctionComponent<TextProps> = ({ slice, context, index }) => {
const options = { ...defaultContext, ...context };
return (
<SpacingComponent $sliceType={slice.slice_type}>
<LayoutWidth width={context.minWidth}>
<LayoutWidth width={options.minWidth}>
<div
className={classNames({
'body-text spaced-text': true,
Expand Down

0 comments on commit cdf1b8c

Please sign in to comment.